1.0.0 • Published 3 years ago
hot-recharge v1.0.0
NODEJS Library for Hot Recharge
Sign up for a merchant account at Hot Recharge
You will need your email and your password to make successful requests
Prerequisites
The library has a set of prerequisites that must be met for it to work
- Node.js
- NPM (Node Package Manager)
Installation
Install the library using either npm or yarn
$ npm install --save hot-recharge
Usage
Import the library
const HotRecharge = require("hot-recharge").HotRecharge;
Declare and instantiate a new instance of HotRecharge
const hotrecharge = new HotRecharge({
email: 'email@gmail.com',
password: 'emailP@55w0rd',
ref: 'AirtimeTransaction1'
}, false);
The ref is optional but if it's present then the last parameter has to be set to false - so that auto generation of references is blocked
Make a pinless recharge transaction
hotrecharge.pinlessRecharge(10, '0713700601').then(function (data) {
console.log(data);
});
1.0.0
3 years ago