UNPKG

@blocklet/payment-react

Version:

Reusable react components for payment kit v2

14 lines (13 loc) 904 B
import 'react-international-phone/style.css'; import type { TPaymentIntent } from '@blocklet/payment-types'; import type { CheckoutCallbacks, CheckoutContext } from '../../types'; export declare const waitForCheckoutComplete: (sessionId: string) => Promise<CheckoutContext>; export declare const hasDidWallet: (user: any) => any; type PageData = CheckoutContext & CheckoutCallbacks & { onQuoteUpdated?: (data: Pick<CheckoutContext, 'checkoutSession' | 'quotes' | 'rateUnavailable' | 'rateError'>) => void; onPaymentIntentUpdate?: (intent: TPaymentIntent | null) => void; onlyShowBtn?: boolean; isDonation?: boolean; }; export default function PaymentForm({ checkoutSession, paymentMethods, paymentIntent, paymentLink, customer, onPaid, onError, onQuoteUpdated, onPaymentIntentUpdate, action, onlyShowBtn, isDonation, rateUnavailable, }: PageData): import("react").JSX.Element; export {};