
Integrate HesabPay for WooCommerce
by Mohammad Mehran Amiri on WordPress.org
HesabPay Gateway for WooCommerce integrates the HesabPay payment gateway into your WooCommerce store with robust webhook verification for secure trans …

Checkout page showing HesabPay payment option
HesabPay Gateway for WooCommerce integrates the HesabPay payment gateway into your WooCommerce store with robust webhook verification for secure transactions. This plugin enables seamless payments via HesabPay by automatically processing payment requests and updating order statuses.
External Services
This plugin integrates with HesabPay (official website: https://hesab.com), a digital payment gateway based in Afghanistan. HesabPay enables merchants (both Afghan and international) to accept a wide range of payments including MasterCard, Visa, American Express, ACH Debit, SEPA, and more, allowing for seamless global transactions.
The plugin communicates with two HesabPay API endpoints:
1. Payment Session Creation:
URL: https://api.hesab.com/api/v1/payment/create-session
Description: This API is used to create a payment session (payment link) for customers. The plugin sends the API key (provided by HesabPay) in the request header for authorization, along with product details (Name, Quantity, Price) in the request body. In response, it receives a payment session URL to redirect the customer for payment.
Terms of Service & Privacy Policy: Please refer to HesabPay’s official website (https://hesab.com) for details.
- Webhook Signature Verification:
URL: https://api.hesab.com/api/v1/hesab/webhooks/verify-signature
Description: After a payment is attempted, HesabPay sends a webhook to the plugin. Before updating the order status, the plugin verifies the signature using this API by sending the API key in the header and the relevant data in the request body. This ensures that the payment information is valid and secure.
Terms of Service & Privacy Policy: Please refer to HesabPay’s official website (https://hesab.com) for details.
Additional Notes
- Ensure your WooCommerce installation is up-to-date to avoid compatibility issues.
- The plugin adheres to WordPress coding standards and GPL licenses.
- For bug reports or feature requests, please contact the author or visit the plugin’s support forum.