PayFanout API reference
    Preparing search index...

    Interface PayZenClientAdapterConfig

    interface PayZenClientAdapterConfig {
        cssUrl?: string;
        environment: "sandbox" | "live";
        getKrGlobal?: () => KrLike | undefined;
        loadScript?: (scriptUrl: string, cssUrl: string) => Promise<void>;
        publicKey: string;
        scriptUrl?: string;
    }
    Index
    cssUrl?: string

    Theme stylesheet URL; defaults to the neon reset (unthemed, host CSS styles the fields).

    environment: "sandbox" | "live"

    Explicit, mirrors the server adapter. PayZen selects TEST/LIVE by the key set.

    getKrGlobal?: () => KrLike | undefined

    Test seam: KR global lookup override.

    loadScript?: (scriptUrl: string, cssUrl: string) => Promise<void>

    Test seam: full asset injection (stylesheet + script) override.

    publicKey: string

    Back Office "Public key" (kr-public-key), format shopId:testpublickey_… — browser-safe.

    scriptUrl?: string

    krypton-client script URL — per-shop config in the Back Office, not a constant.