UNPKG

@betterstore/react

Version:

17 lines (16 loc) 739 B
import { Appearance, StripeElementLocale } from '@stripe/stripe-js'; import { default as React } from 'react'; import { Fonts } from '../checkout-embed/appearance'; declare function PaymentElement({ paymentSecret, publicKey, checkoutAppearance, locale, fonts, onSuccess, onError, children, setSubmitting, }: { paymentSecret: string; publicKey: string | null; checkoutAppearance?: Appearance; locale?: StripeElementLocale; fonts?: Fonts; onSuccess?: () => void; onError?: () => void; children: React.ReactNode; setSubmitting?: (isSubmitting: boolean) => void; }): import("react/jsx-runtime").JSX.Element; declare const _default: React.MemoExoticComponent<typeof PaymentElement>; export default _default;