T402 API Reference - v2.8.0
    Preparing search index...

    Interface PaywallConfig

    Configuration options for the paywall

    interface PaywallConfig {
        appName?: string;
        appLogo?: string;
        currentUrl?: string;
        testnet?: boolean;
        theme?: PaywallTheme;
        walletConnectProjectId?: string;
        deliveryMode?: "cdn" | "inline";
        cdnBaseUrl?: string;
    }
    Index

    Properties

    appName?: string
    appLogo?: string
    currentUrl?: string
    testnet?: boolean
    theme?: PaywallTheme

    Theme configuration for styling the paywall

    walletConnectProjectId?: string

    WalletConnect project ID for mobile deep linking (EVM only) Get your project ID at https://cloud.walletconnect.com

    deliveryMode?: "cdn" | "inline"

    Delivery mode for the paywall HTML.

    • "cdn" (default): Lightweight HTML shell that loads JS/CSS from jsDelivr CDN (~1KB response).
    • "inline": All JS/CSS inlined into the HTML (legacy behavior, ~2.7MB response).
    cdnBaseUrl?: string

    Custom CDN base URL for loading paywall assets. Only used when deliveryMode is "cdn". Defaults to jsDelivr: https://cdn.jsdelivr.net/npm/@t402/paywall@{VERSION}/dist/browser