This repository contains two separate backend projects:
CHECKOUT (URL BASED)→ bKash Checkout (URL Based)TOKENIZED CHECKOUT→ bKash Tokenized Checkout
Postman demo collection: Bkash-Payment-Gateway-API.postman_collection.json
Repository: https://github.com/developer-sujon/bkash-payment-gateway
- Node.js >= 18
- bKash sandbox/production credentials
cd "CHECKOUT (URL BASED)"
cp example.env .env
npm install
npm run serverDefault URL:
Details: CHECKOUT (URL BASED)/README.md
cd "TOKENIZED CHECKOUT"
cp example.env .env
npm install
npm run serverDefault URL:
Details: TOKENIZED CHECKOUT/README.md
- Postman → Import → import this file:
Bkash-Payment-Gateway-API.postman_collection.json
- Set
BASE_URLin Postman variables (Collection/Environment):BASE_URL=http://localhost:8080/api/v1
- Then run:
createPayment→executePayment/callback→queryPayment→searchTransaction→refundTransaction/refundStatus.
- Both projects default to the same port (8080). If you want to run both at the same time, change
PORTin one project’s.env. - If sandbox credentials are public, do not use them in production. Rotate/regenerate credentials from the bKash portal.
- Muhammad Sujon
- muhammad.sujon.cse@gmail.com