Skip to content

Kaminto/momoapi-node

 
 

Repository files navigation

MoMoApi-Node

MTN MoMo API Client for Node JS.

Installation

npm install

Development

npm run start:dev

Usage

There are two methods which are related to the collections product in this file.

*requestToPay

collectionTransaction.requestToPay(subscription-key,host,enviroment, {
    amount: string,
    currency: string,
    externalId: string,
    payer: {
               partyId: string
    },
    payerMessage: string,
    payeeNote: string
})

*getBalance

collectionTransaction.getBalance(subscription-key,enviroment)

-This method returns the balance

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 100.0%