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