@bates-solutions/stripe API Reference - v2.2.1
    Preparing search index...

    Interface CreateSetupIntentOptions

    Options for creating a SetupIntent

    interface CreateSetupIntentOptions {
        confirm?: boolean;
        customerId?: string;
        description?: string;
        idempotencyKey?: string;
        metadata?: Record<string, string>;
        paymentMethod?: string;
        paymentMethodTypes?: string[];
        returnUrl?: string;
        usage?: "off_session" | "on_session";
    }
    Index
    confirm?: boolean

    Confirm immediately. Requires paymentMethod.

    false
    
    customerId?: string

    Customer the saved payment method is attached to on success

    description?: string

    Arbitrary description

    idempotencyKey?: string

    Idempotency key (defaults to a generated UUID)

    metadata?: Record<string, string>

    Key/value metadata

    paymentMethod?: string

    An existing payment method to set up (e.g. from Stripe.js)

    paymentMethodTypes?: string[]

    Payment method types to accept, e.g. ['card']. Sent as allowed_payment_method_types. When omitted, Stripe uses the types enabled in your Dashboard (automatic payment methods).

    returnUrl?: string

    Where to send the customer after a redirect-based authentication. Only used when confirming here, so it requires confirm: true.

    usage?: "off_session" | "on_session"

    How the saved payment method will be used. off_session (charging the customer when they aren't present) asks for the authentication needed up front.

    'off_session'