https://github.com/tekpriest/paystack-node
Paystack SDK written in Typescript
https://github.com/tekpriest/paystack-node
paystack sdk tooling tools typescript
Last synced: 4 months ago
JSON representation
Paystack SDK written in Typescript
- Host: GitHub
- URL: https://github.com/tekpriest/paystack-node
- Owner: tekpriest
- License: mit
- Created: 2021-12-04T15:37:17.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2025-09-02T19:18:28.000Z (5 months ago)
- Last Synced: 2025-09-19T05:27:02.266Z (4 months ago)
- Topics: paystack, sdk, tooling, tools, typescript
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/paystack-sdk
- Size: 618 KB
- Stars: 43
- Watchers: 2
- Forks: 16
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Paystack SDK
#### Why Another [Paystack](https://paystack.com) Package?
Existing Paystack libraries are either outdated, lack modern features, or fail to support TypeScript. This package addresses these gaps by providing:
- Full TypeScript support for type safety and better developer experience.
- A modern, actively maintained library aligned with Paystack’s latest API updates.
- Clean, intuitive APIs designed for ease of use.
### Installation
For Yarn
`yarn add paystack-sdk`
For NPM
`npm install paystack-sdk`
### Usage
For Typescript
```typescript
import {Paystack} from 'paystack-sdk';
const paystack = new Paystack("secret_key");
```
For Javscript
```javascript
const Paystack = require('paystack-sdk').Paystack;
const paystack = new Paystack('secret_key');
```
OR
```javascript
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
- [x] 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 :smile: