An unofficial JavaScript/Typescript client package for querying the MTN Mobile Money API
-
Clone the repo
git clone https://github.com/sopherapps/mtn-pay-js.git
-
Enter the directory
cd mtn-pay-js
-
Rename the
testSetup.example.ts
file totestSetup.ts
mv testSetup.example.ts testSetup.ts
-
Update the variables in that
testSetup.ts
file appropriately. -
Install dependencies
npm install
-
Run npm script for testing
npm run test
This nice post by Carl_Johan Kihl was very helpful when setting up this Typescript project.