Better Payment 0.11.1 API
    Preparing search index...

    Interface KuveytTurkConfig

    Kuveyt Türk Sanal POS (KT Pay Gate) configuration

    Values come from the Kuveyt Türk corporate panel (kurumsal.kuveytturk.com.tr):

    • merchantId: Virtual POS merchant ID
    • customerId: Customer (account) ID
    • username / password: the API role user (Yönetim - Kullanıcı İşlemleri)
    interface KuveytTurkConfig {
        baseUrl?: string;
        customerId: string;
        fetch?: (input: RequestInfo | URL, init?: RequestInit) => Promise<Response>;
        locale?: string;
        logger?: BetterPaymentLogger;
        merchantId: string;
        password: string;
        paymentType?: number;
        retry?: RetryConfig;
        username: string;
        validate?: boolean;
    }

    Hierarchy (View Summary)

    Index
    baseUrl?: string
    customerId: 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
    password: string
    paymentType?: number

    paymentType sent with the Payment request. The API requires it (1 or 2) although the integration document does not describe it. Default: 1.

    retry?: RetryConfig
    username: string
    validate?: boolean

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