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

    Interface CreateCheckoutSessionOptions

    Options for creating a Checkout Session

    interface CreateCheckoutSessionOptions {
        cancelUrl: string;
        clientReferenceId?: string;
        customerEmail?: string;
        customerId?: string;
        idempotencyKey?: string;
        lineItems: CheckoutLineItem[];
        metadata?: Record<string, string>;
        mode?: Mode;
        successUrl: string;
    }
    Index
    cancelUrl: string

    URL to redirect to on cancel

    clientReferenceId?: string

    Your own reference id echoed back on the session

    customerEmail?: string

    Prefill the email for a new customer (ignored when customerId is set)

    customerId?: string

    Existing customer to attach the session to

    idempotencyKey?: string

    Idempotency key (defaults to a generated UUID)

    lineItems: CheckoutLineItem[]

    Line items (price + quantity)

    metadata?: Record<string, string>

    Key/value metadata attached to the session

    mode?: Mode

    Checkout mode.

    'subscription'
    
    successUrl: string

    URL to redirect to on success