WooCommerce
Install the plugin, paste the server URL and keys, place a test order. Classic and block checkout, HPOS.
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
- WordPress → Plugins → Add New → Upload Plugin, choose the plugin ZIP, Install, Activate.
- 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).
- 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
- 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
| Step | What happens |
|---|---|
| Place order | POST /api/v1/payments with the order number as reference and the shop's webhook URL |
| Customer pays | the gateway confirms it from the SMS |
| Webhook | signature checked; only payment.completed whose ID, amount and currency match the order marks it paid |
| Thank-you page | if 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.