Skip to main content
Home

Built and signed on GitHub Actions

A Paystack API wrapper written in Typescript.

This package works with Node.js, Deno, BunIt is unknown whether this package works with Cloudflare Workers
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
JSR Score
100%
Published
a year ago (0.3.2)

This module grants access to the Paystack object, with which we can access the various resources in the Paystack API

Examples

Example 1

import { Paystack } from "@stradox/paystack";

const paystack = new Paystack(<your_secret_key>);

const transaction = await paystack.transaction.initialize({
 amount: 10000,
 email: "johndoe@test.com",
});

OR (to get a singleton instance of the Paystack class)

import { getPaystack } from "@stradox/paystack";

const paystack = getPaystack(<your_secret_key>);

const transaction = await paystack.transaction.initialize({
 amount: 10000,
 email: "johndoe@test.com",
});
Built and signed on
GitHub Actions

New Ticket: Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@stradox/paystack

Import symbol

import * as paystack from "@stradox/paystack";
or

Import directly with a jsr specifier

import * as paystack from "jsr:@stradox/paystack";

Add Package

pnpm i jsr:@stradox/paystack
or (using pnpm 10.8 or older)
pnpm dlx jsr add @stradox/paystack

Import symbol

import * as paystack from "@stradox/paystack";

Add Package

yarn add jsr:@stradox/paystack
or (using Yarn 4.8 or older)
yarn dlx jsr add @stradox/paystack

Import symbol

import * as paystack from "@stradox/paystack";

Add Package

vlt install jsr:@stradox/paystack

Import symbol

import * as paystack from "@stradox/paystack";

Add Package

npx jsr add @stradox/paystack

Import symbol

import * as paystack from "@stradox/paystack";

Add Package

bunx jsr add @stradox/paystack

Import symbol

import * as paystack from "@stradox/paystack";