Title: Integrate HesabPay for WooCommerce
Author: Mohammad Mehran Amiri
Published: <strong>25.02.2025</strong>
Last modified: 24.04.2025

---

Поиск плагинов

![](https://ps.w.org/integrate-hesabpay-for-woocommerce/assets/banner-772x250.png?
rev=3246698)

Этот плагин **не тестировался с последними 3 основными выпусками WordPress**. Скорее
всего, он уже не поддерживается и может быть несовместим с текущими версиями WordPress.

![](https://ps.w.org/integrate-hesabpay-for-woocommerce/assets/icon-128x128.png?
rev=3246698)

# Integrate HesabPay for WooCommerce

 Автор: [Mohammad Mehran Amiri](https://profiles.wordpress.org/mvaai/)

[Скачать](https://downloads.wordpress.org/plugin/integrate-hesabpay-for-woocommerce.zip)

 * [Детали](https://ru.wordpress.org/plugins/integrate-hesabpay-for-woocommerce/#description)
 * [Отзывы](https://ru.wordpress.org/plugins/integrate-hesabpay-for-woocommerce/#reviews)
 *  [Установка](https://ru.wordpress.org/plugins/integrate-hesabpay-for-woocommerce/#installation)
 * [Разработка](https://ru.wordpress.org/plugins/integrate-hesabpay-for-woocommerce/#developers)

 [Поддержка](https://wordpress.org/support/plugin/integrate-hesabpay-for-woocommerce/)

## Описание

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.

 1. 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.

## Скриншоты

[⌊Checkout page showing HesabPay payment option⌉⌊Checkout page showing HesabPay 
payment option⌉[

Checkout page showing HesabPay payment option

[⌊HesabPay payment gateway settings in WooCommerce⌉⌊HesabPay payment gateway settings
in WooCommerce⌉[

HesabPay payment gateway settings in WooCommerce

## Установка

 1. Upload the entire plugin folder (e.g., «hesabpay-woocommerce-gateway») to the `/
    wp-content/plugins/` directory.
 2. Activate the plugin through the ‘Plugins’ menu in WordPress.
 3. Go to WooCommerce > Settings > Payments to locate and configure the HesabPay Gateway.
 4. In your HesabPay Developer Dashboard, set the Webhook URL as displayed in the plugin
    settings (this points to `<?= site_url('/wc-api/hesabpay'); ?>`).

## Часто задаваемые вопросы

### How do I obtain my HesabPay API Key?

Contact HesabPay support or log in to your HesabPay account to retrieve your API
key.

### Where can I find the Webhook URL?

The Webhook URL is automatically generated by the plugin and displayed in the WooCommerce
payment gateway settings. Copy and paste it into your HesabPay Developer Dashboard.

### What should I do if my payment fails?

Check the log file (`hesabpay-payment-log.txt` located in the plugin folder) for
detailed error messages and troubleshooting information.

## Отзывы

Нет отзывов об этом плагине.

## Участники и разработчики

«Integrate HesabPay for WooCommerce» — проект с открытым исходным кодом. В развитие
плагина внесли свой вклад следующие участники:

Участники

 *   [ Mohammad Mehran Amiri ](https://profiles.wordpress.org/mvaai/)

[Перевести «Integrate HesabPay for WooCommerce» на ваш язык.](https://translate.wordpress.org/projects/wp-plugins/integrate-hesabpay-for-woocommerce)

### Заинтересованы в разработке?

[Посмотрите код](https://plugins.trac.wordpress.org/browser/integrate-hesabpay-for-woocommerce/),
проверьте [SVN репозиторий](https://plugins.svn.wordpress.org/integrate-hesabpay-for-woocommerce/),
или подпишитесь на [журнал разработки](https://plugins.trac.wordpress.org/log/integrate-hesabpay-for-woocommerce/)
по [RSS](https://plugins.trac.wordpress.org/log/integrate-hesabpay-for-woocommerce/?limit=100&mode=stop_on_copy&format=rss).

## Журнал изменений

#### 1.0.0

 * Security improvements: Data sanitization, validation, and output escaping enhancements.
 * API integration fixes for creation of payment sessions and webhook signature 
   verification.
 * Enhanced logging and timezone handling using gmdate().
 * Unique prefix naming to prevent conflicts with other plugins.
 * Initial release of HesabPay Gateway for WooCommerce.
 * Integration with HesabPay API for payment creation.
 * Webhook verification and order status updates.
 * Logging for payment requests and webhook responses.

## Мета

 *  Версия **1.0.0**
 *  Обновление: **1 год назад**
 *  Активных установок: **10+**
 *  Версия WordPress ** 5.0 или выше **
 *  Совместим вплоть до: **6.7.10**
 *  Версия PHP ** 7.0 или выше **
 *  Язык
 * [English (US)](https://wordpress.org/plugins/integrate-hesabpay-for-woocommerce/)
 * Метки:
 * [hesabpay](https://ru.wordpress.org/plugins/tags/hesabpay/)[payment gateway](https://ru.wordpress.org/plugins/tags/payment-gateway/)
   [payments](https://ru.wordpress.org/plugins/tags/payments/)[webhook](https://ru.wordpress.org/plugins/tags/webhook/)
   [woocommerce](https://ru.wordpress.org/plugins/tags/woocommerce/)
 *  [Дополнительно](https://ru.wordpress.org/plugins/integrate-hesabpay-for-woocommerce/advanced/)

## Оценки

Пока что нет ни одного отзыва.

[Ваш отзыв](https://wordpress.org/support/plugin/integrate-hesabpay-for-woocommerce/reviews/#new-post)

[Посмотреть всеотзывы](https://wordpress.org/support/plugin/integrate-hesabpay-for-woocommerce/reviews/)

## Участники

 *   [ Mohammad Mehran Amiri ](https://profiles.wordpress.org/mvaai/)

## Поддержка

Есть что сказать? Нужна помощь?

 [Перейти в форум поддержки](https://wordpress.org/support/plugin/integrate-hesabpay-for-woocommerce/)

## Пожертвование

Хотите поддержать улучшение этого плагина?

 [ Пожертвовать на развитие плагина ](https://donate.stripe.com/eVa4hKbvl5Sn2UE144)