WooCommerce

Install the plugin, paste the server URL and keys, place a test order. Classic and block checkout, HPOS.

Updated 22 Nov 2026 · 1 min read

The WooCommerce plugin sends customers to your hosted checkout and marks the order Processing when the signed webhook arrives. The thank-you page checks once more in case the webhook is late. WordPress 5.8+, WooCommerce 6.0+, PHP 7.4+; classic and block checkout; HPOS ready.

Install

  1. WordPress → Plugins → Add New → Upload Plugin, choose the plugin ZIP, Install, Activate.
  2. On the gateway: Admin → Brands / websites → Add a brand for the shop and copy its API key and secret. Check that the brand's currency and methods suit the shop (a USD shop can be paid in BDT at the rate under Currencies).
  3. WooCommerce → Settings → Payments → Mobile banking (self-hosted gateway) → Manage:
    • Enable
    • Payment server URL, e.g. https://pay.example.com
    • API key and API secret — start with the pk_test_ / sk_test_ pair
    • Title and description customers see
  4. Place a test order. The order note shows the payment ID; after paying it shows the TrxID and the order moves to Processing. Then switch to the live keys.

What happens behind

StepWhat happens
Place orderPOST /api/v1/payments with the order number as reference and the shop's webhook URL
Customer paysthe gateway confirms it from the SMS
Webhooksignature checked; only payment.completed whose ID, amount and currency match the order marks it paid
Thank-you pageif the order still needs payment, the status is read once more

Cancelled, expired or failed payments only add an order note — the customer can pay again.