Better Payment 0.11.1 API
    Preparing search index...

    Interface HttpRequestConfig

    interface HttpRequestConfig {
        data?: string;
        headers?: Record<string, string>;
        method?: HttpMethod;
        responseType?: "json" | "text";
        retryable?: boolean;
        timeout?: number;
        url?: string;
        validateStatus?: (status: number) => boolean;
    }
    Index
    data?: string

    Request body, already serialized

    headers?: Record<string, string>
    method?: HttpMethod
    responseType?: "json" | "text"

    'json' (default) parses JSON bodies and falls back to text; 'text' returns the raw text

    retryable?: boolean

    Marks the request as safe to retry (read-only queries sent with POST). Payment, refund and cancel requests are never retried without it.

    timeout?: number

    Timeout in ms. Default: the client's timeout.

    url?: string

    Path relative to the client's baseURL, or an absolute URL

    validateStatus?: (status: number) => boolean

    Statuses that resolve instead of throwing. Default: 2xx.