@suluk/payments - v0.1.0
    Preparing search index...

    Interface CreatePaymentSessionRequest

    Create a PAYMENT session to confirm in-browser. Omit paymentMethod for a Payment-Element flow (the browser collects the card); pass a saved paymentMethod token for a one-click charge on a saved card.

    interface CreatePaymentSessionRequest {
        amount: MinorAmount;
        customerId?: string;
        paymentMethod?: Secret<string>;
        captureMethod?: CaptureMethod;
        setupFutureUsage?: boolean;
        metadata?: Record<string, string>;
    }
    Index

    Properties

    amount: MinorAmount
    customerId?: string
    paymentMethod?: Secret<string>

    pin the charge to a saved instrument (one-click); omit to let the browser collect one (Payment Element).

    captureMethod?: CaptureMethod
    setupFutureUsage?: boolean

    save the collected card for later off-session use.

    metadata?: Record<string, string>