UNPKG

@betterstore/react

Version:

33 lines (32 loc) 1 kB
import { CheckoutFormStore } from '../../../../stores/checkout-form-store'; import { StripeElementLocale } from '@stripe/stripe-js'; import { AppearanceConfig, Fonts } from '../../appearance'; interface PaymentFormProps { payment: { secret: string | null; publicKey: string | null; componentKey: number; }; callbacks: { onSuccess: () => void; onError: () => void; onBack: () => void; onDoubleBack: () => void; }; customerInfo: { email: string; address: string; shippingData: NonNullable<CheckoutFormStore["formData"]["shipping"]>; }; appearance?: { config?: AppearanceConfig; fonts?: Fonts; locale?: StripeElementLocale; }; currency: { code: string; exchangeRate: number; }; } export default function PaymentForm({ payment, callbacks, customerInfo, appearance, currency, }: PaymentFormProps): import("react/jsx-runtime").JSX.Element; export {};