PayFanout API reference
    Preparing search index...

    Interface UsePayOptions

    interface UsePayOptions {
        billingDetails?: {
            address?: {
                city?: string;
                country?: string;
                line1?: string;
                postalCode?: string;
            };
            email?: string;
            name?: string;
        };
        onServerCompletion?: ServerCompletionCallback;
    }
    Index
    billingDetails?: {
        address?: {
            city?: string;
            country?: string;
            line1?: string;
            postalCode?: string;
        };
        email?: string;
        name?: string;
    }

    AVS billing gathered on the payment step (e.g. a postal code), forwarded to the completion endpoint and merged over the session's billing at completePayment. Only used by the derived completionEndpoint transport — ignored when you pass your own onServerCompletion.

    onServerCompletion?: ServerCompletionCallback

    Explicit completion transport for tokenize-first PSPs — the escape hatch. When omitted, usePay derives one from the provider's completionEndpoint if set; passing this always wins over the endpoint.