Skip to main content
Back to NPM packages
bkash-serverv0.1.0

bKash SDK

Modern, type-safe bKash payment SDK for JavaScript and TypeScript.

Overview

An unofficial, zero-dependency TypeScript SDK for Bangladesh's bKash payment gateway, shipped as two packages: bkash-server for merchant backends and bkash-client for headless checkout. It adds proactive token caching, double-execution guards, and server-side amount verification so the browser can never dictate the charge, with bindings for React, React Native, Vue, Svelte, and Angular.

Best for

  • bKash tokenized checkout in Node.js, Express, and Next.js backends
  • React, React Native, Vue, Svelte, and Angular storefronts
  • Server-side amount verification and idempotent payment execution
  • Multi-framework payment flows with a single headless client

Benefits

  • Type-safe API with full autocompletion for the bKash gateway
  • Proactive token caching with rate-limit aware mutex handling
  • Double-execution guards and amount verification built in
  • Customer OTP and PIN never touch merchant servers or client code

Installation

npm install bkash-server bkash-client

Built with

TypeScriptNode.jsReactReact Native

Frequently asked questions

What does this package do?

An unofficial, zero-dependency TypeScript SDK for Bangladesh's bKash payment gateway, shipped as two packages: bkash-server for merchant backends and bkash-client for headless checkout. It adds proactive token caching, double-execution guards, and server-side amount verification so the browser can never dictate the charge, with bindings for React, React Native, Vue, Svelte, and Angular.

Who is this package for?

bKash tokenized checkout in Node.js, Express, and Next.js backends, React, React Native, Vue, Svelte, and Angular storefronts, Server-side amount verification and idempotent payment execution, Multi-framework payment flows with a single headless client.

How do I install it?

npm install bkash-server bkash-client