Purchase airtime for multiple numbers easily
Steps to test
*Get public key and private key from wallets.africa
*Create a .env file in the root directory after cloning this repository and add the following variables Public_Key=yourpublickey Secret_Key=yourprivatekey.
*Install the app's dependancies npm install
*Run the app node server.js
*Go to postman and start testing
Endpoints
*POST localhost:3000/api/purchase
request body =[
{"Code":"network provider",
"Amount":"amount to transfer",
"PhoneNumber":"phone number to transfer to",
},
{"Code":"network provider",
"Amount":"amount to transfer",
"PhoneNumber":"phone number to transfer to",
},
{"Code":"network provider",
"Amount":"amount to transfer",
"PhoneNumber":"phone number to transfer to",
}
//please note that you can enter any number of items you want here
]