Options for loading and managing Checkout with useCheckoutElements.

interface UseOptions {
    enabled?: boolean;
    getConfiguration: () => Promise<CheckoutElements.CreateOptions>;
}

Properties

enabled?: boolean

Defaults to true. When false, the status remains idle.

getConfiguration: () => Promise<CheckoutElements.CreateOptions>

Fetches a fresh Checkout Session client secret and its configuration. Called when enabled on mount and again by reload().