UNPKG

@blocklet/payment-react

Version:

Reusable react components for payment kit v2

24 lines (23 loc) 758 B
import type { TCustomer } from '@blocklet/payment-types'; export type StripeCheckoutFormProps = { clientSecret: string; intentType: string; customer: TCustomer; mode: string; onConfirm: Function; returnUrl?: string; submitButtonText?: string; }; export type StripeCheckoutProps = { clientSecret: string; intentType: string; publicKey: string; mode: string; customer: TCustomer; onConfirm: Function; onCancel: Function; returnUrl?: string; title?: string; submitButtonText?: string; }; export default function StripeCheckout({ clientSecret, intentType, publicKey, mode, customer, onConfirm, onCancel, returnUrl, title, submitButtonText, }: StripeCheckoutProps): import("react").JSX.Element;