Skip to content

tekpriest/paystack-node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

4b2a733 · Jan 6, 2025
Jan 6, 2025
Dec 31, 2024
Sep 11, 2022
Sep 15, 2022
Dec 4, 2021
Jan 5, 2024
Dec 4, 2021
Nov 28, 2024
Jan 18, 2022
Jan 3, 2025
Jan 3, 2025
Oct 6, 2023
Sep 11, 2022
Jan 18, 2022

Repository files navigation

Paystack SDK

Why Another Paystack 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

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

  • 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

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 😄