PayFanout API reference
    Preparing search index...

    Interface PayButtonProps

    interface PayButtonProps {
        billingDetails?: {
            address?: {
                city?: string;
                country?: string;
                line1?: string;
                postalCode?: string;
            };
            email?: string;
            name?: string;
        };
        children?: ReactNode;
        className?: string;
        disabled?: boolean;
        onResult: (result: PayResult) => void;
        onServerCompletion?: ServerCompletionCallback;
        style?: CSSProperties;
    }
    Index
    billingDetails?: {
        address?: {
            city?: string;
            country?: string;
            line1?: string;
            postalCode?: string;
        };
        email?: string;
        name?: string;
    }

    AVS billing collected on the payment step, forwarded to the provider's completionEndpoint. Ignored when onServerCompletion is passed.

    children?: ReactNode
    className?: string
    disabled?: boolean
    onResult: (result: PayResult) => void

    Receives one uniform result for BOTH completion shapes (§4a).

    onServerCompletion?: ServerCompletionCallback

    Server completion for tokenize-first PSPs (Paysafe, PayPal). Optional when <PayFanoutProvider completionEndpoint> is set — completion is then derived automatically. Pass this to override with a custom transport: it receives the clientToken from confirm() and resolves with the PaymentInfo.

    style?: CSSProperties