Description
PuranPay for WooCommerce redirects the customer to the hosted pay page. They Send Money from bKash, Nagad, Rocket, or Upay, type the TrxID, and the official SMS match marks the WooCommerce order paid.
This plugin is a client for the PuranPay service. You need a PuranPay account, an active plan, and a paired phone app so official wallet SMS can be matched. The plugin does not lock features behind a license key. PuranPay’s Terms of Service and Privacy Policy apply to that service.
How it works
- Customer places a WooCommerce order and chooses PuranPay.
- The shop creates a payment with your secret key and redirects to checkoutUrl.
- After the TrxID matches, PuranPay POSTs
payment.verifiedto your webhook. - The plugin verifies
x-puranpay-signature(HMAC-SHA256 of the raw body) and callspayment_complete.
Do not treat the browser return as paid. The thank-you page only syncs if the webhook is late.
Setup
- In PuranPay: Billing buy a plan. Settings add this shop domain (host only, no
https://). - Settings Webhook URL paste the URL shown on the PuranPay gateway settings screen (
/wp-json/puranpay/v1/webhook). - Copy
sk_live_(orsk_test_in Test mode) and the webhook secret into WooCommerce Settings Payments PuranPay. - Pair the Android app under Phone app so official SMS can match.
Store currency must be BDT. The checkout host and API URL default to PuranPay production (https://api.puranpay.com).
Third-party service
Checkout is created on PuranPay (https://api.puranpay.com). The customer is redirected to hosted pay, then PuranPay POSTs a signed webhook back to this shop.
Privacy
When a customer pays, the plugin sends order amount, order id, and optional billing name / email / phone to PuranPay so checkout and the verified webhook can run. No data is sent until you save a secret key and the customer places an order. See puranpay.com/privacy.
Installation
- Upload the plugin zip in Plugins Add New Upload Plugin, or search for “PuranPay” after it is listed on WordPress.org.
- Activate it.
- WooCommerce Settings Payments PuranPay Enable.
- Paste the secret key and webhook secret. Copy the webhook URL into the PuranPay dashboard.
FAQ
-
Does this work with the block checkout?
-
Yes. Classic shortcode checkout and Cart/Checkout blocks are both supported.
-
Why was the order not marked paid?
-
Check that the webhook URL is HTTPS, the HMAC secret matches, the shop domain is on your plan, and Test mode matches the key (
sk_test_vssk_live_). Sandbox webhooks havelivemode: falseand are ignored on a live store. -
Can I refund from WooCommerce?
-
Not through this plugin. PuranPay does not expose a refund API yet.
-
Does this plugin send data off-site?
-
Yes, only after you save a secret key and a customer places an order. Amount, order id, and optional billing name / email / phone go to PuranPay. Details: Privacy Policy and Terms.
Reviews
There are no reviews for this plugin.
Contributors & Developers
“PuranPay for WooCommerce” is open source software. The following people have contributed to this plugin.
ContributorsTranslate “PuranPay for WooCommerce” into your language.
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
Changelog
1.0.3
- Set the text domain to the plugin slug puranpay-for-woocommerce.
1.0.2
- Set text domain to plugin slug puranpay-woocommerce.
- Add WordPress.org username alamincodes to Contributors.
1.0.1
- Load WordPress.org translations automatically (removed load_plugin_textdomain).
- Rename gateway class to WC_PuranPay_Gateway so it uses the plugin prefix.
1.0.0
- First release: hosted checkout, signed webhook fulfill, Checkout Blocks, HPOS.