UNPKG

@blocklet/payment-react

Version:

Reusable react components for payment kit v2

17 lines (16 loc) 762 B
import { type BoxProps } from '@mui/material'; import type { LiteralUnion } from 'type-fest'; import type { CheckoutCallbacks, CheckoutContext } from '../types'; type Props = CheckoutContext & CheckoutCallbacks & { completed?: boolean; error?: any; showCheckoutSummary?: boolean; formRender?: Record<string, any>; id: string; }; export default function DonationForm({ checkoutSession, paymentMethods, paymentIntent, paymentLink, customer, completed, error, mode, onPaid, onError, onChange, goBack, action, showCheckoutSummary, formRender, id, }: Props): import("react").JSX.Element; type RootProps = { mode: LiteralUnion<'standalone' | 'inline' | 'popup', string>; } & BoxProps; export declare const Root: React.FC<RootProps>; export {};