Official Node.js SDK for SaligPay payment integration. A type-safe, production-ready client for processing payments, managing checkout sessions, and handling webhooks.
npm · version · TypeScript · Node.js
Features
- Type-safe — Full TypeScript support with exported types
- Dual build — Works with both ESM and CommonJS
- Authentication — Client credentials OAuth flow
- Checkout — Create and manage payment sessions
- Webhooks — Parse and verify webhook events
- Error handling — Custom error classes with detailed context
- Node.js 18+ — Uses native fetch API
- Zero dependencies — Minimal runtime footprint
Installation
Code
Quick Start
Code
Table of Contents
- Configuration
- Authentication
- Checkout Sessions
- Webhooks
- Error Handling
- TypeScript Usage
- CommonJS Usage
- Testing
- Server-Side Usage — Singleton, React Router 7, Next.js (App & Pages), Hono, NestJS, Elysia
- Troubleshooting
- Security Best Practices
- API Reference
Last modified on
