Overview
An unofficial, MIT-licensed TypeScript SDK for the Nagad payment gateway in Bangladesh, shipped as two packages: nagad-server for backends and nagad-client for a headless client state machine. It handles Node.js RSA PKCS#1 v1.5 decryption differences, server egress IPv4 whitelisting, and secure server-side verification without exposing client-side keys.
Best for
- Nagad MFS checkout in Node.js, Express, and Next.js applications
- Enterprise backends needing cryptographic control over responses
- Headless client flows in React and React Native
- Production Nagad integrations with server-side verification
Benefits
- Zero-runtime-dependency server and client packages
- Handles RSA PKCS#1 v1.5 decryption under modern Node.js runtimes
- Built-in helpers for egress IPv4 whitelisting and proxying
- No client-side keys and strict TypeScript types end to end
Installation
npm install nagad-server nagad-clientBuilt with
Frequently asked questions
What does this package do?
An unofficial, MIT-licensed TypeScript SDK for the Nagad payment gateway in Bangladesh, shipped as two packages: nagad-server for backends and nagad-client for a headless client state machine. It handles Node.js RSA PKCS#1 v1.5 decryption differences, server egress IPv4 whitelisting, and secure server-side verification without exposing client-side keys.
Who is this package for?
Nagad MFS checkout in Node.js, Express, and Next.js applications, Enterprise backends needing cryptographic control over responses, Headless client flows in React and React Native, Production Nagad integrations with server-side verification.
How do I install it?
npm install nagad-server nagad-client