Home/Guides/Integration & E-commerce Guides
Integration & E-commerce Guides

bKash Payment Gateway Integration: A Developer's Checklist.

bKash is the most widely used mobile wallet in Bangladesh. Integrating it directly gives customers a familiar checkout — if you handle the flow carefully.

Short answer

To integrate bKash directly, a business first becomes a bKash merchant and requests online payment gateway access, then receives sandbox credentials and API documentation from the bKash developer portal. The common tokenized checkout flow is: get a grant token, create a payment, redirect the customer to bKash to authorise with their wallet number, OTP and PIN, then execute the payment on your server and confirm it with a query call before marking the order paid. Refunds and search APIs complete the integration. Keep credentials on the server and follow the current official documentation, as API versions change.

Merchant onboarding

  • Apply for a bKash merchant account through bKash's merchant channels with business documents such as trade licence, TIN and bank details.
  • Request payment gateway (online checkout) access for your website or app.
  • Receive sandbox credentials: app key, app secret, username and password.
  • After integration and testing, bKash reviews and issues production credentials.

Tokenized checkout flow

StepWhereWhat happens
1. Grant tokenYour serverExchange credentials for an access token; refresh before expiry
2. Create paymentYour serverSend amount, invoice number and callback URL; receive a payment ID and bKash URL
3. Customer authorisesbKash pageCustomer enters wallet number, OTP and PIN
4. CallbackYour callback URLbKash redirects with payment ID and status (success, failure or cancel)
5. ExecuteYour serverCall execute for successful callbacks to complete the transaction
6. Query / verifyYour serverConfirm final status, amount and transaction ID before fulfilling the order

Endpoint names and versions follow bKash's official documentation at the time of integration; always build against the current version.

Implementation tips

  • Server-side only — never expose app secret or tokens in JavaScript or mobile app code.
  • Idempotency — store payment IDs and ignore repeated callbacks for already-completed orders.
  • Timeouts — if execute times out, use the query API before retrying, to avoid double charges.
  • Amount checks — compare the executed amount with the order total on your server.
  • Logging — log every API request and response (without secrets) for reconciliation and support tickets.
  • Plugins — for WooCommerce or other platforms, prefer official or well-maintained plugins and keep them updated.

Refunds and reconciliation

Use the refund API for full or partial refunds and record the refund transaction ID against the order. Reconcile daily settlement reports from the merchant panel with your orders, remembering that settlements may arrive net of charges. Build an internal report listing orders marked paid but not found in settlement — that is where integration bugs show up first.

Go-live checklist

  1. Test success, failure, cancel, timeout and duplicate callback scenarios in sandbox.
  2. Test refunds and partial refunds.
  3. Confirm production credentials are in server environment variables.
  4. Display bKash as a payment option clearly, with amount and order number shown before redirect.
  5. Monitor the first transactions live and reconcile with the merchant panel.

How DreamIT can help

DreamIT has integrated payments, messaging and e-commerce systems for Dream Group brands and client projects. If you need help with bKash payment gateway integration, we can scope the integration, test it end to end and hand it over with documentation. Contact DreamIT.

Frequently asked questions

Can I integrate bKash without a merchant account?

No. Online payment integration requires a bKash merchant account with payment gateway access. Personal accounts and 'send money' cannot be used as a checkout.

Is there a bKash sandbox for testing?

Yes. bKash provides sandbox credentials and test wallet details to approved merchants and developers through its developer portal.

Should I integrate bKash directly or through an aggregator?

Aggregators add bKash along with cards and other wallets in one integration. Direct integration can make sense for high wallet volume or when you want a direct relationship.

Does bKash support recurring payments?

bKash has offered agreement-based (tokenized) payments for saving a customer's wallet for future payments. Check current product availability with bKash.

How long does bKash payment gateway integration take?

Development for a standard website checkout is usually a matter of days to a couple of weeks; merchant approval and production review can take longer depending on documents.

Sources and further reading

Editorial note: this guide is written for general information and reviewed by the DreamIT team. We do not publish prices or fees we cannot source; always confirm current pricing, fees and requirements with the provider before you decide. Last reviewed 24 Nov 2026.

Need help with bKash payment gateway integration?

Book a free 30-minute call with the DreamIT team. We will tell you honestly what we would do.