Better Payment 0.11.1 API
    Preparing search index...

    Class BetterPaymentClient

    Index
    akbank: ProviderClient
    iyzico: ProviderClient
    kuveytturk: ProviderClient
    mock: ProviderClient

    The in-memory test provider (MockProvider from better-payment/testing)

    parampos: ProviderClient
    paytr: ProviderClient
    sipay: ProviderClient
    • Health check endpoint

      Returns Promise<{ service: string; status: string; timestamp: string; version: string }>

      const health = await client.health();
      console.log(health.status); // 'ok'
    • A provider by its id on the server (the key in providers), for custom providers or ids other than the built-in ones.

      Parameters

      • providerId: string

      Returns ProviderClient