PayFanout API reference
    Preparing search index...

    Interface ClientPaymentAdapter

    interface ClientPaymentAdapter {
        pspName: string;
        confirm(handle: MountedFieldsHandle): Promise<ConfirmResult>;
        handleRedirectReturn?(
            location: RedirectReturnLocation,
        ): Promise<ConfirmResult | null>;
        listPaymentMethodCapabilities(): PaymentMethodCapability[];
        loadSdk(): Promise<void>;
        mount(
            container: HTMLElement,
            options: MountOptions,
        ): Promise<MountedFieldsHandle>;
        unmount(handle: MountedFieldsHandle): void;
    }

    Implemented by

    Index
    pspName: string
    • Renders the PSP's hosted fields into container.

      Layout slot convention (split-field PSPs like Paysafe): when the host has placed elements carrying data-payfanout-field="<fieldName>" inside the container, the adapter mounts each hosted field INTO its slot — the host fully owns the layout (grid, rows, spacing). Without slots, the adapter falls back to its own stacked containers. Single-element PSPs (Stripe's Payment Element) control layout via MountOptions.fieldOptions instead.

      Parameters

      Returns Promise<MountedFieldsHandle>