npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

baxipay

v1.0.0

Published

A NodeJs Wrapper for Baxipay APIs

Downloads

73

Readme

Baxipay

CircleCI GitHub repo size GitHub contributors Twitter Follow

Nodejs API wrapper for Baxipay

Baxipay Endpoints/Services exposed by the library

  • VTU
  • Biller
  • Verify
  • Cable
  • Data
  • Electricity
  • ePin
  • Verify

Visit the Baxipay Website to get a full overview of the services listed above.

Get Started

Installation

npm install baxipay

Usage

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);

VTU

Operations relating to Airtime recharge

Fetching a list of available network providers integrated

const result = await baxipay.vtu.fetchProviders();

Recharge mobile airtime from MTN, AIRTEL, GLO, 9-MOBILE, SMILE

const result = await baxipay.vtu.requestAirtime('07035361770',500,'mtn',207,'prepaid','AX497P2Z');

Biller

Activities that has to do basic information about billers

Gets the list of all billers

const result = await baxipay.biller.fetchBillerProviders();

Gets the list of all biller products.

const result = await baxipay.biller.fetchBillerServiceList();

Gets various types of billers category

const result = await baxipay.biller.fetchBillerCategories();

Cable

Operations relating to Cable TV Subscriptions

Retrieves cable tv providers and thier codes

const result = await baxipay.cable.fetchCableProviders();

Retrieves subscription bundles for Cable TV product

const result = await baxipay.cable.multichoiceList("dstv");

Retrieves Addons that can be added along side the selected subscription bundle.

const result = await baxipay.cable.multichoiceAddon("dstv", "ACSSE36");

Cable TV Subscription for Multichoice Only (DSTV, GOTV)

const result = await baxipay.cable.multichoiceRequest("dstv","NLTESE36", 1122334455, 4200, "1","HDPVRE36","1",207,"AX14s63P2k");

Data Bundle

Operations relating to Data Bundles

Retrieves databundle providers and their codes

const result = await baxipay.data.fetchDataBundleProviders();

Fetches Available Network Bundles for Bundle Providers

const result = await baxipay.data.fetchDataBundle("mtn");

Purchase data bundle from MTN, AIRTEL, GLO, 9MOBILE, SMILE

const result = await baxipay.data.requestDataBundle("07035361770", 200, "mtn", "200", 207,"AX14s68P2Z");

Electricity

Operations relating to purchase of electricity services

Gets various types of electricity billers

const result = await baxipay.electricity.fetchDataElectricityProviders();

Retrieves available pin bundle types (9Mobile, Glo, Waec, Bulksms, Spectranet)

const result = await baxipay.electricity.verifyAccount("ikeja_electric_prepaid","04042404048");

Purchase available pin bundle types (9Mobile, Glo, Waec, Bulksms, Spectranet)

const result = await baxipay.electricity.requestElectricity("04042404048", 2000, "08012345678", "ikeja_electric_prepaid", 205,"ASF33309d458");

ePin

Operations relating to purchase of ePin services

Retrieves epin providers and their service type codes

const result = await baxipay.epin.fetchEpinProviders();

Retrieves available pin bundle types (9Mobile, Glo, Waec, Bulksms, Spectranet)

const result = await baxipay.epin.fetchEpinBundle("glo");

Purchase available pin bundle types (9Mobile, Glo, Waec, Bulksms, Spectranet)

const result = await baxipay.epin.requestEpinBundle("glo",1,100, 100, 207,"AX14s68P2Z");

Contributing

  • You can contribute by extending the README file to contain more examples and explanations of how to use the package.

Authors

License

The code is available as open source under the terms of the MIT License