Skip to content

Releases: samaasi/paystack-sdk-node

v0.8.0

20 Jan 12:01

Choose a tag to compare

v0.8.0 Pre-release
Pre-release

🚀 Initial Public Release

We are excited to announce the first public release of paystack-sdk-node! This SDK provides a modern, type-safe interface for integrating Paystack payments into your Node.js applications.

✨ Key Features

  • 🔒 Full Type Safety: Comprehensive TypeScript definitions for requests, responses, and resources.
  • ⚡ Modern Runtimes: Built for Node.js 18+ and Bun.
  • 🔌 Framework Integrations: First-class support for popular frameworks:
    • Express: Middleware for webhook handling.
    • NestJS: Dependency injection module.
    • Next.js: Route handlers for API routes.
    • Fastify: Plugin for easy integration.
  • 🛠 Core Resources: Support for key Paystack APIs including:
    • Transactions, Customers, Refunds
    • Transfers, Splits, Subaccounts
    • Plans, Subscriptions, and more.
  • 🛡 Webhooks: Built-in signature verification utilities.

📦 Installation

npm install paystack-sdk-node
# or
bun add paystack-sdk-node

💻 Quick Start

import { PaystackClient } from 'paystack-sdk-node';

const client = new PaystackClient({ apiKey: process.env.PAYSTACK_SECRET_KEY });

// Initialize a transaction
const response = await client.transactions.initialize({
  email: 'user@example.com',
  amount: 5000,
});

For full documentation, visit the README.