WooCommerce + bKash and Nagad: a 20-minute setup
Install one plugin, paste two keys, place a test order. Orders turn Processing on their own when the money arrives.

If your shop runs on WooCommerce, you do not need to write code to take bKash and Nagad with automatic confirmation. This is the whole setup.
Before you start
- The gateway is installed, the cron job runs, and your phone is paired.
- At least one bKash or Nagad number is added under Payment methods.
1. Make a brand for the shop (3 minutes)
In the gateway admin, Brands / websites → Add. Give it the shop's name and logo. After saving you see two key pairs. Copy the test pair (pk_test_… and sk_test_…) for now.
2. Install the plugin (5 minutes)
WordPress → Plugins → Add New → Upload Plugin, choose the plugin ZIP, Install, Activate. Then WooCommerce → Settings → Payments → Mobile banking (self-hosted gateway) → Manage. Enable it, enter your gateway's address and the two test keys, and write the title customers will see — for example "bKash / Nagad (instant confirmation)".
3. Test (5 minutes)
Place an order on your shop and choose the new method. On the checkout page press Simulate a successful payment — this button exists only for test keys. Back in WooCommerce, the order is Processing, with the payment ID and TrxID in the order notes.
4. Go live (2 minutes)
Replace the test keys with the live pair (pk_live_…, sk_live_…). Make one real ৳10 order from your own phone and watch it complete.
Good to know
- The order is marked paid only by a signed webhook whose payment ID, amount and currency match the order — and the thank-you page checks once more in case the webhook is late.
- A cancelled or expired payment only adds a note; the customer can try again.
- It works with the classic and the block checkout, and with HPOS order tables.
The plugin's details are in the WooCommerce docs.


