Class JengaApiSdk

Hierarchy

Constructors

Methods

  • Bill Validation https://developer.jengaapi.io/reference/bill-validation-1

    This web service enables your application perform a bill validation. This is typically before a payment is made for example before paying a utility bill you would like the payment application to validate it actually exists and its details are correct

    Type Parameters

    • T

    Parameters

    • options: {
          data: BillValidation;
          headers?: any;
      }
      • data: BillValidation
      • Optional headers?: any

    Returns Promise<T>

  • 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
  • IMT Pesalink - To Bank Account

    https://developer.jengaapi.io/reference/imt-pesalink-to-bank-account

    This web service enables an application to send money to a PesaLink participating bank. It is restricted to Kenya.

    Type Parameters

    • T

    Parameters

    • options: {
          data: SendMoneyPesalinkToBankAccountImtData;
          headers?: any;
      }
      • data: SendMoneyPesalinkToBankAccountImtData
      • Optional headers?: any

    Returns Promise<T>

  • IMT to Mobile Wallets

    https://developer.jengaapi.io/reference/imt-to-mobile-wallets

    This enables your application to send money to telco wallets across Kenya, Uganda, Tanzania & Rwanda.

    Kindly note in order to get a response you will need to test this in production.

    Type Parameters

    • T

    Parameters

    • options: {
          data: SendMoneyToMobileWalletImtData;
          headers?: any;
      }
      • data: SendMoneyToMobileWalletImtData
      • Optional headers?: any

    Returns Promise<T>

  • Type Parameters

    • T

    Parameters

    • options: {
          data: SendMoneyWithinEquityImtData;
          headers?: any;
      }

      Move Funds Within Equity Bank Across Kenya, Uganda, Tanzania, Rwanda & South Sudan.

      Kindly note in order to get a response you will need to test this in production.

      • data: SendMoneyWithinEquityImtData
      • Optional headers?: any

    Returns Promise<T>

  • MPGS Authenticate Payment

    https://developer.jengaapi.io/reference/mpgs-authenticate-payment

    This API will be used to authenticate payments on MPGS.cardNumber and cardSecurity are encrypted using AES encryption then the cypher is base64 encoded.

    Type Parameters

    • T

    Parameters

    • options: {
          data: mpgsAuthenticatePaymentData;
          headers?: any;
      }
      • data: mpgsAuthenticatePaymentData
      • Optional headers?: any

    Returns Promise<T>

  • MPGS Authorize Payment

    https://developer.jengaapi.io/reference/mpgs-authorize-payment

    This API will be initiated by the merchant and will authorize payment on Mastercard.cardNumber and cardSecurity are encrypted using AES encryption then the cypher is base64 encoded.

    Type Parameters

    • T

    Parameters

    • options: {
          data: mpgsAuthorizePaymentData;
          headers?: any;
      }
      • data: mpgsAuthorizePaymentData
      • Optional headers?: any

    Returns Promise<T>

  • MPGS Validate Payment

    https://developer.jengaapi.io/reference/mpgs-validate-payment

    This API will validate payment before card authorization. The API will do the following

    Check if the merchant is subscribed to the Card APIs service

    Check if they are subscribed to the MID they are using.

    Fetch the relevant charges

    cardNumber and cardSecurity are encrypted using AES encryption then the cypher is base64 encoded.

    Type Parameters

    • T

    Parameters

    • options: {
          data: mpgsValidatePaymentData;
          headers?: any;
      }
      • data: mpgsValidatePaymentData
      • Optional headers?: any

    Returns Promise<T>

  • Query Transaction Details

    https://developer.jengaapi.io/reference/query-payment-details

    This webservice enables an application or service to query a transactions details and status

    Type Parameters

    • T

    Parameters

    • options: {
          headers?: any;
          params: {
              ref: string;
          };
      }
      • Optional headers?: any
      • params: {
            ref: string;
        }
        • ref: string

    Returns Promise<T>

  • Receive Payments - Bill Payments

    https://developer.jengaapi.io/reference/bill-payment

    This API Provides Partners the Capability To Initiate Utility Bill Payments For Goods And Services

    Type Parameters

    • T

    Parameters

    • options: {
          data: BillPayment;
          headers?: any;
      }
      • data: BillPayment
      • Optional headers?: any

    Returns Promise<T>

  • Type Parameters

    • T

    Parameters

    • options: {
          data: sendMoneyPesaLinkToBankData;
          headers?: any;
      }

      This web service enables an application to send money to a PesaLink participating bank. It is restricted to Kenya.

      • data: sendMoneyPesaLinkToBankData
      • Optional headers?: any

    Returns Promise<T>

  • Pesalink - To Mobile Number

    This web service enables an application to send money to mobile.

    Type Parameters

    • T

    Parameters

    • options: {
          data: sendMoneyPesaLinkToMobileData;
          headers?: any;
      }
      • data: sendMoneyPesaLinkToMobileData
      • Optional headers?: any

    Returns Promise<T>

  • RTGS

    https://developer.jengaapi.io/reference/rtgs

    The Real Time Gross Settlement (RTGS) web-service enables an application to send money intra-country to other bank accounts.

    Type Parameters

    • T

    Parameters

    • options: {
          data: sendMoneyToRtgsData;
          headers?: any;
      }
      • data: sendMoneyToRtgsData
      • Optional headers?: any

    Returns Promise<T>

  • SWIFT

    https://developer.jengaapi.io/reference/swift

    The swift web-service enables your application to send cross-border remittances

    Type Parameters

    • T

    Parameters

    • options: {
          data: sendMoneyToSwiftData;
          headers?: any;
      }
      • data: sendMoneyToSwiftData
      • Optional headers?: any

    Returns Promise<T>

  • To Mobile Wallets

    https://developer.jengaapi.io/reference/remittance

    This enables your application to send money to telco :iphone: wallets across Kenya, Uganda, Tanzania & Rwanda. kindly note in order to get a response you will need to test this in production.

    Type Parameters

    • T

    Parameters

    • options: {
          data: sendMoneyToMobileWalletData;
          headers?: any;
      }
      • data: sendMoneyToMobileWalletData
      • Optional headers?: any

    Returns Promise<T>

  • Within Equity Bank

    https://developer.jengaapi.io/reference/within-equity-bank

    Move Funds Within Equity Bank Across Kenya, Uganda, Tanzania, Rwanda & South Sudan.

    Type Parameters

    • T

    Parameters

    • options: {
          data: SendMoneyWithinEquityData;
          headers?: any;
      }
      • data: SendMoneyWithinEquityData
      • Optional headers?: any

    Returns Promise<T>

  • 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