PayFanout API reference
    Preparing search index...

    Interface PaymentSession

    interface PaymentSession {
        amount: number;
        clientSecret?: string;
        currency: string;
        id: string;
        metadata?: Record<string, string>;
        pspName: string;
        pspSessionId: string;
        status:
            | "requires_payment_method"
            | "requires_confirmation"
            | "requires_action"
            | "requires_capture"
            | "processing"
            | "succeeded"
            | "canceled"
            | "failed";
    }
    Index
    amount: number
    clientSecret?: string

    Token the client SDK needs to mount/confirm.

    currency: string

    ISO 4217.

    id: string

    Caller-supplied or generated internal id — PayFanout does NOT persist it.

    metadata?: Record<string, string>
    pspName: string
    pspSessionId: string

    e.g. Stripe PaymentIntent id / Paysafe payment-handle session context.

    status:
        | "requires_payment_method"
        | "requires_confirmation"
        | "requires_action"
        | "requires_capture"
        | "processing"
        | "succeeded"
        | "canceled"
        | "failed"