UNPKG

@commercelayer/react-components

Version:
15 lines (14 loc) 504 B
interface StripePaymentIntentParams { publicApiKey: string; paymentIntentClientSecret: string; } type PaymentVerificationState = 'valid' | 'invalid' | 'processing'; type PaymentProcessingFeedback = { status: Exclude<PaymentVerificationState, 'invalid'>; message?: string; } | { status: 'invalid'; message: string; }; export declare function checkPaymentIntent({ publicApiKey, paymentIntentClientSecret }: StripePaymentIntentParams): Promise<PaymentProcessingFeedback>; export {};