PayFanout API reference
    Preparing search index...

    Interface WorldlineClientAdapterConfig

    interface WorldlineClientAdapterConfig {
        cspNonce?: string;
        environment: "sandbox" | "live";
        getWorldlineGlobal?: () => WorldlineTokenizerConstructor | undefined;
        loadScript?: (url: string) => Promise<void>;
        paymentMethods?: PaymentMethodCapability[];
        sdkUrl?: string;
    }
    Index
    cspNonce?: string

    A Content-Security-Policy nonce for the Tokenizer <script> the adapter injects, set as its nonce attribute before the tag is inserted, so a script-src that allows scripts by nonce without 'strict-dynamic' runs it. The Tokenizer reads no nonce, loads no further script and adds no <style>, so that tag is all the nonce needs to cover; the one inline style attribute it sets is cosmetic, and no nonce applies to attributes. Pass the value alone, as in the policy's 'nonce-<value>' source; the constructor refuses anything else. The adapter never reads a nonce from the page, and a loadScript seam loads the script without it.

    environment: "sandbox" | "live"

    Explicit; selects the Worldline host the Tokenizer script loads from.

    getWorldlineGlobal?: () => WorldlineTokenizerConstructor | undefined
    loadScript?: (url: string) => Promise<void>

    Test seams.

    paymentMethods?: PaymentMethodCapability[]

    Account capabilities vary per contract — override the conservative default.

    sdkUrl?: string

    Another Worldline-served Tokenizer script URL. Worldline requires the script to load from its own servers, so this never points at a self-hosted copy.