Nodejs API wrapper for Baxipay
- VTU
- Biller
- Verify
- Cable
- Data
- Electricity
- ePin
- Verify
Visit the Baxipay Website to get a full overview of the services listed above.
npm install baxipay
To get Live API Key, you will have to contact support. For Test key, go here
const Baxipay = require('baxipay'); const baxipay = new Baxipay(API_KEY);
Operations relating to Airtime recharge
const result = await baxipay.vtu.fetchProviders();
const result = await baxipay.vtu.requestAirtime('07035361770',500,'mtn',207,'prepaid','AX497P2Z');
Activities that has to do basic information about billers
const result = await baxipay.biller.fetchBillerProviders();
const result = await baxipay.biller.fetchBillerServiceList();
const result = await baxipay.biller.fetchBillerCategories();
Operations relating to Cable TV Subscriptions
const result = await baxipay.cable.fetchCableProviders();
const result = await baxipay.cable.multichoiceList("dstv");
const result = await baxipay.cable.multichoiceAddon("dstv", "ACSSE36");
const result = await baxipay.cable.multichoiceRequest("dstv","NLTESE36", 1122334455, 4200, "1","HDPVRE36","1",207,"AX14s63P2k");
Operations relating to Data Bundles
const result = await baxipay.data.fetchDataBundleProviders();
const result = await baxipay.data.fetchDataBundle("mtn");
const result = await baxipay.data.requestDataBundle("07035361770", 200, "mtn", "200", 207,"AX14s68P2Z");
Operations relating to purchase of electricity services
const result = await baxipay.electricity.fetchDataElectricityProviders();
const result = await baxipay.electricity.verifyAccount("ikeja_electric_prepaid","04042404048");
const result = await baxipay.electricity.requestElectricity("04042404048", 2000, "08012345678", "ikeja_electric_prepaid", 205,"ASF33309d458");
Operations relating to purchase of ePin services
const result = await baxipay.epin.fetchEpinProviders();
const result = await baxipay.epin.fetchEpinBundle("glo");
const result = await baxipay.epin.requestEpinBundle("glo",1,100, 100, 207,"AX14s68P2Z");
- You can contribute by extending the README file to contain more examples and explanations of how to use the package.
The code is available as open source under the terms of the MIT License