Skip to main content

Built and signed on GitHub Actions

Paystack API library to manage payments.

This package works with Node.js, Deno, BunIt is unknown whether this package works with Cloudflare Workers, Browsers
It is unknown whether this package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
It is unknown whether this package works with Browsers
JSR Score
100%
Published
2 months ago (1.3.2)

Paystack SDK

This library is based on the official Paystack payment gateway APIs.
This will serve as a Software Development Kit (SDK) for handling payments.

Table of Content

Technical Info

Things to note:

  • This project was built with Bun runtime.
  • Many script commands are executed with Bun.
  • Note: You do not have to use Bun to use this library.
  • Bun may only be required when working on the library itself and not when using it in your projects.

Installation

This package can be installed with many package managers:

  # deno
  deno add @irabeny/paystack-sdk

  # npm (use any of npx, yarn dlx, pnpm dlx, or bunx)
  npx jsr add @irabeny/paystack-sdk

visit JSR for more info: https://jsr.io/@irabeny/paystack-sdk@latest

Features

Most of Paystack API features are implemented.

These are the currently implemented features:

  1. Transactions
  2. Transfer Recipients
  3. Transfers
  4. Plans
  5. Subscriptions
  6. Verification
  7. Miscellaneous

Test

To run tests on the implemented features you need to be connected to the internet. To run tests on implemented features you will require to store your paystack test key as environment variable in PAYSTACK_TEST_PRIVATE_KEY

To run tests, just run the command below:

  # utils tests
  bun run test-utils
  # or features test - require PAYSTACK_TEST_PRIVATE_KEY
  bun run test-feats
  # or all tests - require PAYSTACK_TEST_PRIVATE_KEY
  bun test

Conventional Commit and Release Management

Cocogitto is used on this library project for conventional commit and changesets.

Built and signed on
GitHub Actions
View transparency log

Add Package

deno add jsr:@irabeny/paystack-sdk

Import symbol

import * as mod from "@irabeny/paystack-sdk";

---- OR ----

Import directly with a jsr specifier

import * as mod from "jsr:@irabeny/paystack-sdk";

Add Package

npx jsr add @irabeny/paystack-sdk

Import symbol

import * as mod from "@irabeny/paystack-sdk";

Add Package

yarn dlx jsr add @irabeny/paystack-sdk

Import symbol

import * as mod from "@irabeny/paystack-sdk";

Add Package

pnpm dlx jsr add @irabeny/paystack-sdk

Import symbol

import * as mod from "@irabeny/paystack-sdk";

Add Package

bunx jsr add @irabeny/paystack-sdk

Import symbol

import * as mod from "@irabeny/paystack-sdk";