paystack-sdk
TypeScript icon, indicating that this package has built-in type declarations

2.5.13 • Public • Published

Paystack SDK

Why Another Paystack Package?

Other packages are either outdated or don't support types.

Installation

For Yarn yarn add paystack-sdk

For NPM npm install paystack-sdk

Usage

For Typescript

import {Paystack} from 'paystack-sdk';

const paystack = new Paystack("secret_key");

For Javscript

const Paystack = require('paystack-sdk').Paystack;
const paystack = new Paystack('secret_key');

OR

const { Paystack } = require('paystack-sdk');
const paystack = new Paystack('secret_key');

All methods use promise meaning you can either use the async...await or then...catch or try...catch

Modules

  • [x] Charge
  • [x] Customers
  • [x] Plans
  • [x] Products
  • [x] Subscriptions
  • [x] Transactions
  • [x] Transfers
  • [x] Dedicated Virtual Accounts
  • [x] Apple Pay
  • [x] Subaccounts
  • [x] Transaction Splits
  • [x] Settlements
  • [x] Invoices
  • [x] Transaction Recipients
  • [x] Transfers Control
  • [x] Bulk Charges
  • [ ] Control Panel
  • [ ] Disputes
  • [x] Refunds
  • [x] Verification
  • [ ] Miscellaneous

CONTRIBUTING

If you notice a missing function, or maybe a bug. Please feel free to submit a PR. I will take a look at it. You will need to fork the repo and create a PR against it with your changes.
Thank you 😄

Package Sidebar

Install

npm i paystack-sdk

Weekly Downloads

279

Version

2.5.13

License

MIT

Unpacked Size

128 kB

Total Files

91

Last publish

Collaborators

  • en1tan