Configuration used to create Checkout.

interface CreateOptions {
    clientSecret: string;
    returnURL: string;
    defaults?: Defaults;
    merchantDisplayName?: string;
    style?: UserInterfaceStyle;
    paymentElement?: PaymentElementConfiguration;
    currencySelectorElement?: CurrencySelectorElementConfiguration;
}

Properties

clientSecret: string

The Checkout Session client secret.

returnURL: string

A URL that redirects back to your app after payment authentication.

defaults?: Defaults

Customer information already known by your app.

merchantDisplayName?: string

Customer-facing business name.

Overrides the light or dark appearance.

Configuration for the Checkout-owned Payment Element.

currencySelectorElement?: CurrencySelectorElementConfiguration

Configuration for Currency Selector Element. Provide this configuration to enable the element when Adaptive Pricing is available.