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

    Interface CreatePaymentOptions

    Options for creating a payment (PaymentIntent)

    interface CreatePaymentOptions {
        amount: number;
        confirm?: boolean;
        currency?: CurrencyCode;
        customerId?: string;
        description?: string;
        idempotencyKey?: string;
        metadata?: Record<string, string>;
        offSession?: boolean;
        paymentMethod?: string;
        receiptEmail?: string;
    }
    Index
    amount: number

    Amount in the smallest currency unit (e.g. cents)

    confirm?: boolean

    Confirm the PaymentIntent immediately after creation.

    false
    
    currency?: CurrencyCode

    ISO currency code (default: usd)

    customerId?: string

    Customer to attach the payment to

    description?: string

    Arbitrary description shown in the Stripe dashboard

    idempotencyKey?: string

    Idempotency key (defaults to a generated UUID)

    metadata?: Record<string, string>

    Key/value metadata attached to the PaymentIntent

    offSession?: boolean

    The customer is not present (charging a saved payment method). Use with confirm: true. If the bank asks for authentication, Stripe then fails the payment (authentication_required) instead of leaving it in requires_action.

    paymentMethod?: string

    Payment method to charge (e.g. pm_…)

    receiptEmail?: string

    Email address to send the receipt to