Better Payment 0.11.1 API
    Preparing search index...

    Interface AkbankConfig

    Akbank Sanal POS (JSON API) configuration

    Values come from the Akbank Sanal POS panel:

    • merchantSafeId: Merchant safe ID
    • terminalSafeId: Terminal safe ID
    • secretKey: Secret key (used for HMAC-SHA512 signatures)
    interface AkbankConfig {
        baseUrl?: string;
        fetch?: (input: RequestInfo | URL, init?: RequestInit) => Promise<Response>;
        gateway3dUrl?: string;
        locale?: string;
        logger?: BetterPaymentLogger;
        merchantSafeId: string;
        retry?: RetryConfig;
        secretKey: string;
        subMerchantId?: string;
        terminalSafeId: string;
        testMode?: boolean;
        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>

    gateway3dUrl?: string

    Override the 3D gateway URL (securepay)

    locale?: string
    merchantSafeId: string
    retry?: RetryConfig
    secretKey: string
    subMerchantId?: string
    terminalSafeId: string
    testMode?: boolean

    Selects the test 3D gateway. betterPayment() sets this automatically when mode is 'sandbox'.

    validate?: boolean

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