UNPKG

@betterstore/react

Version:

30 lines (29 loc) 1.37 kB
import { createBetterStoreClient, GetCheckoutResponse } from '@betterstore/sdk'; import { StripeElementLocale } from '@stripe/stripe-js'; import { AppearanceConfig, Fonts } from './appearance'; interface CheckoutFormProps { storeClient: ReturnType<typeof createBetterStoreClient>; checkoutId: string; onSuccess: () => void; onError: () => void; cancelUrl: string; checkoutSecret: string; customerData?: GetCheckoutResponse["customerData"]; customer?: GetCheckoutResponse["customer"]; currency: string; checkoutAppearance?: AppearanceConfig; fonts?: Fonts; locale?: StripeElementLocale; setShippingCost: (cost: number) => void; exchangeRate: number; paymentSecret: string | null; publicKey: string | null; paymentComponentKey: number; clientProxy?: string; latitude?: number; longitude?: number; currentAlpha3CountryCode?: string; shipments: GetCheckoutResponse["shipments"]; } export default function CheckoutForm({ storeClient, checkoutId, onSuccess, onError, cancelUrl, checkoutSecret, customer, customerData, currency, checkoutAppearance, fonts, locale, setShippingCost, exchangeRate, paymentSecret, publicKey, paymentComponentKey, clientProxy, latitude, longitude, currentAlpha3CountryCode, shipments, }: CheckoutFormProps): import("react/jsx-runtime").JSX.Element; export {};