Better Payment 0.11.1 API
    Preparing search index...

    Interface BetterPaymentClientConfig

    Client configuration

    interface BetterPaymentClientConfig {
        baseUrl: string;
        fetch?: (input: RequestInfo | URL, init?: RequestInit) => Promise<Response>;
        headers?: Record<string, string>;
    }
    Index
    baseUrl: string

    Base URL for API endpoints

    '/api/pay'
    
    'https://api.example.com/pay'
    
    fetch?: (input: RequestInfo | URL, init?: RequestInit) => Promise<Response>

    Custom fetch implementation (optional)

    Type Declaration

      • (input: RequestInfo | URL, init?: RequestInit): Promise<Response>
      • Parameters

        • input: RequestInfo | URL
        • Optionalinit: RequestInit

        Returns Promise<Response>

    globalThis.fetch
    
    headers?: Record<string, string>

    Default headers for all requests