UNPKG

@blocklet/payment-react

Version:

Reusable react components for payment kit v2

17 lines (16 loc) 654 B
import type { TPaymentMethod, TInvoiceExpanded } from '@blocklet/payment-types'; export interface StripePaymentActionProps { invoice?: TInvoiceExpanded; invoiceIds?: string[]; subscriptionId?: string; customerId?: string; currencyId?: string; paymentMethod?: TPaymentMethod; autoTrigger?: boolean; onExternalPayment?: (invoiceId?: string) => void; onSuccess?: () => void; onError?: (error: Error) => void; onClose?: () => void; children?: (onPay: () => void, loading: boolean) => React.ReactNode; } export default function StripePaymentAction(props: StripePaymentActionProps): import("react").JSX.Element;