PayFanout API reference
    Preparing search index...

    Interface CompletePaymentInput

    interface CompletePaymentInput {
        billingDetails?: {
            address?: {
                city?: string;
                country?: string;
                line1?: string;
                postalCode?: string;
            };
            email?: string;
            name?: string;
        };
        clientToken: string;
        idempotencyKey: string;
        pspSessionId: string;
    }
    Index
    billingDetails?: {
        address?: {
            city?: string;
            country?: string;
            line1?: string;
            postalCode?: string;
        };
        email?: string;
        name?: string;
    }

    AVS billing data gathered after the session was created — merged over the session's own billingDetails at completion. Tokenize-first PSPs (Paysafe) forward it to the charge; confirm-on-client PSPs (Stripe) never call completePayment. Lets a host attach a postal code collected on the payment step, which AVS-enforcing accounts require (Paysafe error 3004), without recreating the session.

    clientToken: string

    Token produced by the client adapter's confirm() (e.g. Paysafe Payment Handle token).

    idempotencyKey: string
    pspSessionId: string