UNPKG

@blocklet/payment-react

Version:

Reusable react components for payment kit v2

15 lines (14 loc) 687 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; }; export default function Payment({ checkoutSession, paymentMethods, paymentIntent, paymentLink, customer, completed, error, mode, onPaid, onError, onChange, goBack, action, showCheckoutSummary, }: Props): import("react").JSX.Element; type RootProps = { mode: LiteralUnion<'standalone' | 'inline' | 'popup', string>; } & BoxProps; export declare const Root: React.FC<RootProps>; export {};