UNPKG

droplinked-payment-hub

Version:

A unified payment component that handles different payment providers

30 lines (29 loc) 894 B
import { CommonStyle } from '../../types'; export interface PaymentRecipient { address: string; amount: number; } export interface XionPaymentProps { orderId: string; shopId: string; onSuccess: () => void; onCancel: () => void; onError: (error: unknown) => void; commonStyle: CommonStyle; return_url?: string; isTestnet?: boolean; memo?: string; } export interface XionPaymentContentProps { recipients: PaymentRecipient[]; orderId: string; shopId: string; isTestnet: boolean; onSuccess: () => void; onCancel: () => void; onError: (error: unknown) => void; commonStyle: CommonStyle; return_url?: string; memo?: string; } export default function XionPayment({ orderId, onSuccess, onCancel, onError, return_url, commonStyle, shopId, isTestnet, memo, }: XionPaymentProps): import("react/jsx-runtime").JSX.Element;