Skip to content

Latest commit

 

History

History
39 lines (26 loc) · 815 Bytes

README.md

File metadata and controls

39 lines (26 loc) · 815 Bytes

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