Options for loading and managing Checkout with useCheckout.

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

Properties

enabled?: boolean

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

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

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