Configuration used to create Checkout.

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

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.