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 🙏

© 2026 – Pkg Stats / Ryan Hefner

easy-paystack

v1.0.0

Published

This developers use integrate Paystack into their application very easily

Readme

Easy Paystack

The goal of the Easy Paystack package is to make working with Paystack APIs as easy as possible for the newbie.

Some Advantages

  1. While other packages are structured in a way that allows developers to include API keys within their code, with Easy Paystack you only need to set it up in your as an environment variable and you are good to go. This reduces the margin of error from copying and pasting your API keys all over the place. Also, this helps you build more secure apps and avoid the mistake of pushing your API keys to version control such as Github.

  2. The main code makes heavy use of async/await so you can access returned values with just about two lines of code. Hopefully, I or you can optimize this soon enough such that the promise is resolved from the end of the package and only one response is sent back: the success case or the error case.

Contribution

You are welcome to contribute to this package. However, you need to follow this convention:

  1. Kindly stick to the use of async/await

  2. Write a test for for the methods you contribute

  3. Write an example usage for the method you contribute and add it to the usage.js file

  4. Add your methods to the Paystack object to keep sync and maintain the naming convention. The naming convention is as below:

    Paystack.groupName.methodName()

    For example, a method created to check for a user's BVN will be under the Verification group name. It will therefor be:

    Paystack.verification.resolveBVN()

    This is not rigid. You can use appropriate shorter versions of the words as long as the meaning is not lost and users will be able to understand what it stands for and what your code does.

    Using the Package

    const Paystack = require('easy-paystack')

    const banks = Paystack.misc.listBanks()

    banks.then(data => console.log(data)) .catch(err => console.log(err))

    Result: You get the list of banks currently supported by Paystack

    Current Methods

    1. Transactions

      • Initialize transaction: transactions.initialize(amount, email)
      • Verify Transaction: transactions.verifyTrx(reference)
      • List Transactions: transactions.listTrx()
      • Fetch Transaction: transactions.fetchTrx(id)
    2. Verification

      • Verify BVN Match: verify.matchBVN((bvn, accountNumber, bankCode, firstName, lastName)
      • Resolve BVN: verify.resolveBVN(bvn)
      • Resolve Account Number: verify.resolveAccount(bankAccount, bankCode)
      • Resolve Card BIN: verify.resolveCardBin(bin)
    3. Miscellaneous

      • List Banks: misc.listBanks()
      • List Countries: misc.countries()

    Environment Settings

    Easy Paystack has been built such that you would not need to copy your public and private keys around. All you need to do is to create a .env file and add your keys like so:

    PAYSTACK_SECRET_KEY=sk_test_**************************************** PAYSTACK_PUBLIC_KEY=pk_test_****************************************

    You may also add your BVN and Card Bin like so when testing MY_BVN=************ CARD_BIN=******

    Licence

MIT

Help This Package Get Noticed

You can share this package with your friends and give us it a star on Github.