@commercelayer/react-components
Version:
The Official Commerce Layer React Components
15 lines (14 loc) • 504 B
TypeScript
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 {};