MTN MoMo API Client for Node JS.
npm install
npm run start:dev
There are two methods which are related to the collections product in this file.
collectionTransaction.requestToPay(subscription-key,host,enviroment, {
amount: string,
currency: string,
externalId: string,
payer: {
partyId: string
},
payerMessage: string,
payeeNote: string
})
collectionTransaction.getBalance(subscription-key,enviroment)
-This method returns the balance