@blocklet/payment-react
Version:
Reusable react components for payment kit v2
26 lines (25 loc) • 826 B
TypeScript
import type { TCustomer } from '@blocklet/payment-types';
export type StripeCheckoutFormProps = {
clientSecret: string;
intentType: string;
customer: TCustomer;
mode: string;
onConfirm: Function;
onSkip?: Function | null;
returnUrl?: string;
submitButtonText?: string;
};
export type StripeCheckoutProps = {
clientSecret: string;
intentType: string;
publicKey: string;
mode: string;
customer: TCustomer;
onConfirm: Function;
onCancel: Function;
onSkip?: Function | null;
returnUrl?: string;
title?: string;
submitButtonText?: string;
};
export default function StripeCheckout({ clientSecret, intentType, publicKey, mode, customer, onConfirm, onCancel, onSkip, returnUrl, title, submitButtonText, }: StripeCheckoutProps): import("react").JSX.Element;