@commercelayer/react-components
Version:
The Official Commerce Layer React Components
23 lines (22 loc) • 1.04 kB
TypeScript
import type { StripeElementLocale, StripeElementsOptions, StripePaymentElementOptions } from "@stripe/stripe-js";
import { type JSX } from "react";
import type { PaymentMethodConfig } from "../../reducers/PaymentMethodReducer";
import type { PaymentSourceProps } from "./PaymentSource";
export interface StripeConfig {
containerClassName?: string;
hintLabel?: string;
name?: string;
options?: StripePaymentElementOptions;
appearance?: StripeElementsOptions["appearance"];
[key: string]: any;
}
type Props = PaymentMethodConfig["stripePayment"] & Omit<JSX.IntrinsicElements["div"], "ref"> & Partial<PaymentSourceProps["templateCustomerSaveToWallet"]> & {
show?: boolean;
publishableKey: string;
locale?: StripeElementLocale;
clientSecret: string;
expressPayments?: boolean;
connectedAccount?: string;
};
export declare function StripePayment({ publishableKey, show, options, clientSecret, locale, expressPayments, connectedAccount, ...p }: Props): JSX.Element | null;
export default StripePayment;