@betterstore/react
Version:
E-commerce for Developers
22 lines (21 loc) • 856 B
TypeScript
import { StripeElementLocale } from "@stripe/stripe-js";
import React from "react";
import { AppearanceConfig, Fonts } from "../../appearance";
interface PaymentFormProps {
paymentSecret: string | null;
onSuccess: () => void;
onError: () => void;
onBack: () => void;
onDoubleBack: () => void;
contactEmail: string;
shippingAddress: string;
shippingName: string;
shippingPrice: string;
checkoutAppearance?: AppearanceConfig;
fonts?: Fonts;
locale?: StripeElementLocale;
publicKey: string | null;
paymentComponentKey: number;
}
export default function PaymentForm({ paymentSecret, onSuccess, onError, onBack, onDoubleBack, contactEmail, shippingAddress, shippingName, shippingPrice, checkoutAppearance, fonts, locale, publicKey, paymentComponentKey, }: PaymentFormProps): React.JSX.Element;
export {};