Why Another Paystack Package?
Other packages are either outdated or don't support types.
For Yarn
yarn add paystack-sdk
For NPM
npm install paystack-sdk
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
- Charge
- Customers
- Plans
- Products
- Subscriptions
- Transactions
- Transfers
- Dedicated Virtual Accounts
- Apple Pay
- Subaccounts
- Transaction Splits
- Settlements
- Invoices
- Transaction Recipients
- Transfers Control
- Bulk Charges
- Control Panel
- Disputes
- Refunds
- Verification
- Miscellaneous
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 ๐