@pretzelai/react
Version:
A React Stripe Payment Modal Component
14 lines (13 loc) • 512 B
TypeScript
import React from "react";
export interface PaymentModalProps {
isOpen: boolean;
publicKey: string;
priceId: string;
userEmail: string;
userId: string;
apiUrl?: string;
onClose?: () => void;
onPaymentSuccess: (paymentIntentId?: string) => void;
onPaymentError: (error?: string) => void;
}
export declare const PaymentModal: ({ isOpen, publicKey, priceId, userEmail, userId, onClose, onPaymentSuccess, onPaymentError, apiUrl, }: PaymentModalProps) => React.JSX.Element | null;