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

budpay-sdk

v1.0.0

Published

integration with BudPay payment gateway, allowing you to accept payments, facilitate bill payments, perform identity verification, and manage payouts efficiently

Downloads

3

Readme

Payment Gateway SDK

Welcome to the Payment Gateway SDK! This SDK provides seamless integration with BudPay payment gateway, allowing you to accept payments, facilitate bill payments, perform identity verification, and manage payouts efficiently.

Installation

To get started, simply include the SDK in your project. No need to instantiate the main class, as it's already done for you.

npm install budpay-sdk

Usage

Note

secrets is your api key. Register on budpay to website here or here for older version to get your api key.

Accept Payment

import {acceptPayment} from 'bupday-sdk'

s2sCardEncryptionV2

Example Data
{
    "data" :{
        "number": "5123450000000008",
        "expiryMonth": "10",
        "expiryYear": "22",
        "cvv" : "100",
        "pin" : "1234" // (optional - only required for verve/local cards)
    },
    "reference": "1253627873656276350"
}
acceptPayment.s2sCardEncryptionV2(secret, data);

s2sCardTransaction

Example Data
{ 
    "amount": "100", 
    "card": "83fa6763bb31bae36a74f787ab814514aeede91fcdb311fd67609b414c5e5ea2751a47870c8717e71bcbc9c33287a3d6af9ffae8e2edbf2de1e2694384d699b020d31492637eef60d7a63f303798363a", 
    "currency": "USD", 
    "email": "[email protected]", 
    "reference": "1253627873656276350" 
}
acceptPayment.s2sCardTransaction(secret, data);

s2sBankTransfer

Example Data
{ 
    "email": "[email protected]", 
    "amount": "100", 
    "currency" :"NGN", 
    "reference": "1253627873656276350", 
    "name": "Business Name / Firstname lastname" 
}
acceptPayment.s2sBankTransfer(secret, data);

s2sCardTransactionV2

Example Data
{ 
    "amount": "100", 
    "card": "83fa6763bb31bae36a74f787ab814514aeede91fcdb311fd67609b414c5e5ea2751a47870c8717e71bcbc9c33287a3d6af9ffae8e2edbf2de1e2694384d699b020d31492637eef60d7a63f303798363a", 
    "currency": "USD", 
    "email": "[email protected]", 
    "reference": "1253627873656276350" 
}
acceptPayment.s2sCardTransactionV2(secret, data);

s2sVerifyTransaction

reference: The transaction reference used to intiate the transaction

acceptPayment.s2sVerifyTransaction(secret, reference);

Bill Payment

airtime

billPayment.airtime(secret);

getInternet

billPayment.getInternet(secret);

getTV

billPayment.getTV(secret);

getElectricity

billPayment.getElectricity(secret);

getInternetProviderPlan

billPayment.getInternetProviderPlan(secret, provider);

getTVPackages

billPayment.getTVPackages(secret, provider);

airtimeTopup

Example Data
{ "provider": "MTN",
    "number": "07036218209",
    "amount": "100",
    "reference": "2459392959593939"
}
billPayment.airtimeTopup(secret, data);

tvValidate

Example Data
{
    "provider": "GOTV",
    "number": "2019505346"
}
billPayment.tvValidate(secret, data);

electricityValidate

Example Data
{
    "provider": "IBEDC",
    "type": "prepaid",
    "number": "1111111111111"
}
billPayment.electricityValidate(secret, data);

tvSubscription

Example Data
{
    "provider": "GOTV",
    "number": "2019505346",
    "code": "gotv-max",
    "reference": "20220511035554758"
}
billPayment.tvSubscription(secret, data);

electricityRecharge

Example Data
{
    "provider": "IKEDC",
    "number": "1111111111111",
    "type": "prepaid",
    "amount": 1000,
    "reference": "2022051105275457530"
}
billPayment.electricityRecharge(secret, data);

internetDataPurchase

Example Data
{ "provider": "MTN",
    "number": "07036218209",
    "plan_id": "238",
    "reference": "2459392959593939"
}
billPayment.internetDataPurchase(secret, data);

Identity Verification

verifyAccountName

Example Data
{
    "bank_code": "000013",
    "account_number": "0050883605"
}
identityVerification.verifyAccountName(secret, data);

bvnVerification

Example Data
{
    "bvn": "00000000000",
    "first_name": "Tolulope",
    "middle_name": "Samuel",
    "last_name": "Segun",
    "phone_number": "08011111111",
    "dob": "1972-12-03",
    "gender": "Male",
    "reference": "20220540300003938",
    "callback_url": "http://your_webhook_url"
}
identityVerification.bvnVerification(secret, data);

Payout

bankList

payout.bankList(secret);

bankListKES

payout.bankListKES(secret);

bankListGHS

payout.bankListGHS(secret);

bankNameVerification

Example Data
{
    "bank_code": "000013",
    "account_number": "0050883605",
    "currency": "NGN"
}
payout.bankNameVerification(secretsecret, data);

singlePayout

Example Data
{
    "currency": "NGN",
    "amount": "100",
    "bank_code": "000013",
    "bank_name": "GUARANTY TRUST BANK",
    "account_number": "0050883605",
    "narration": "Test transfer"
}

// For KES

{
    "account_number": "0719593074",
    "amount": "10",
    "bank_code": "0016",
    "bank_name": "Citi Bank",
    "currency": "KES",
    "narration": "Bank Prod test payment",
    "paymentMode": "momo"
}

// For GHS
{
    "account_number": "0270073750",
    "amount": "10",
    "bank_code": "ABS",
    "bank_name": "ABSA BANK",
    "currency": "GHS",
    "narration": "Bank Transfer To Ghana"
}
payout.singlePayout(secret, data);

bulkPayout

Example Data
{
    "currency": "NGN",
    "transfers": [
        {
            "amount": "200",
            "bank_code": "000013",
            "bank_name": "GUARANTY TRUST BANK",
            "account_number": "0050883605",
            "narration": "January Salary"
        },
        {
            "amount": "100",
            "bank_code": "000013",
            "bank_name": "GUARANTY TRUST BANK",
            "account_number": "0050883605",
            "narration": "February  Salary"
        },
        {
            "amount": "100",
            "bank_code": "000013",
            "bank_name": "GUARANTY TRUST BANK",
            "account_number": "0050883605",
            "narration": "March  Salary"
        }
    ]
}
payout.bulkPayout(secret, data);

verifyPayout

payout.verifyPayout(secret, reference);

listPayout

payout.listPayout(secret, data);

feePayout

Example Data
{
    "currency": "NGN",
    "amount": "100"
}
payout.feePayout(secret, data);

walletBalance

payout.walletBalance(secret, currency);

walletTransactions

payout.walletTransactions(secret, currency);

Open Source Documentation

For more detailed documentation, contribution guidelines, and issues, please visit our GitHub repository.

NPM Package Information

npm package Version: 1.0.0 License: MIT

Ensure that you replace any placeholder information such as "secret" and "data" with the actual variables or parameters required for your methods.