Class AirtimeService

Hierarchy

Constructors

Methods

  • Purchase Airtime

    https://developer.jengaapi.io/reference/purchase-airtime

    This gives an application the ability to purchase airtime from any telco in East and Central Africa.

    Type Parameters

    • T

    Parameters

    • options: Options

    Returns Promise<T>

  • Type Parameters

    • AuthResponse

    Returns Promise<AuthResponse>

  • Gets the current configuration of the SDK

    Returns {
        apiKey: string;
        consumerSecret: string;
        enableAuthorization: boolean;
        enableLogging: boolean;
        env: string;
        merchantCode: string;
        privateKeyPath: string;
        verbose: boolean;
    }

    • apiKey: string
    • consumerSecret: string
    • enableAuthorization: boolean
    • enableLogging: boolean
    • env: string
    • merchantCode: string
    • privateKeyPath: string
    • verbose: boolean
  • Updates the current configuration of the SDK

    Parameters

    • config: UpdateConfig
    • callback: Function = null

    Returns {
        apiKey: string;
        consumerSecret: string;
        enableAuthorization: boolean;
        enableLogging: boolean;
        env: string;
        merchantCode: string;
        privateKeyPath: string;
        verbose: boolean;
    }

    • apiKey: string
    • consumerSecret: string
    • enableAuthorization: boolean
    • enableLogging: boolean
    • env: string
    • merchantCode: string
    • privateKeyPath: string
    • verbose: boolean