Better Payment 0.11.1 API
    Preparing search index...

    Interface PayTRConfig

    PayTR configuration (Mağaza Paneli > Bilgi)

    interface PayTRConfig {
        baseUrl?: string;
        fetch?: (input: RequestInfo | URL, init?: RequestInit) => Promise<Response>;
        locale?: string;
        logger?: BetterPaymentLogger;
        merchantId: string;
        merchantKey: string;
        merchantSalt: string;
        retry?: RetryConfig;
        testMode?: boolean;
        timeoutLimit?: number;
        validate?: boolean;
    }

    Hierarchy (View Summary)

    Index
    baseUrl?: string
    fetch?: (input: RequestInfo | URL, init?: RequestInit) => Promise<Response>

    Custom fetch implementation for API calls. Default: globalThis.fetch.

    Type Declaration

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

        • input: RequestInfo | URL
        • Optionalinit: RequestInit

        Returns Promise<Response>

    locale?: string
    merchantId: string
    merchantKey: string
    merchantSalt: string
    retry?: RetryConfig
    testMode?: boolean

    Sends test_mode=1. betterPayment() sets this automatically when mode is 'sandbox'.

    timeoutLimit?: number

    iFrame timeout in minutes (default 30)

    validate?: boolean

    Validate requests before calling the provider (card, amounts, basket, required fields). Default: true.