OpenCart
Separate builds for OpenCart 4 and 3, with a connection test button and configurable order status mapping.
- OpenCart 4 · PHP 8+
- OpenCart 3 · PHP 7.1+
Your client clicks “Pay with crypto” on a WHMCS invoice and pays on the HisarPay payment page. Once the payment confirms, the module applies it to the invoice, the invoice is marked paid and WHMCS’s own automation provisions the service.
Unzip hisarpay-whmcs.zip and copy the modules and includes folders into your WHMCS root. The package adds four parts: the gateway module, its callback, the module’s helper files and a small hook that points out a test key in the back office.
modules/gateways/hisarpay.php
modules/gateways/hisarpay/
modules/gateways/callback/hisarpay.php
includes/hooks/hisarpay_admin_notice.phpGo to System Settings → Payment Gateways, open the “All Payment Gateways” tab and activate HisarPay.
Paste the API key and the webhook signing secret, then save. In the dashboard, add the callback URL below as an endpoint under Developers → Webhooks.
https://billing.yourdomain.com/modules/gateways/callback/hisarpay.phpWith the test key, create a client invoice, click “Pay with crypto” and simulate the payment. Once the invoice shows as paid, switch to your live key.
The fields in the payment gateway settings:
WHMCS invoice states follow HisarPay states like this:
| HisarPay state | WHMCS invoice | Details |
|---|---|---|
| Pending | UnpaidThe client is on the payment page. | The client is on the payment page. |
| Paid | PaidRecorded with the txid; service automation runs. | Recorded with the txid; service automation runs. |
| Overpaid | PaidThe invoice amount is recorded; the extra shows in the gateway log and you can add it as client credit. | The invoice amount is recorded; the extra shows in the gateway log and you can add it as client credit. |
| Underpaid | UnpaidThe amount received is applied as a partial payment; the balance stays due. | The amount received is applied as a partial payment; the balance stays due. |
| Expired | UnpaidThe invoice stays open and the client can start a new payment. | The invoice stays open and the client can start a new payment. |
| Cancelled | UnpaidThe WHMCS invoice is not changed. If the client still pays a cancelled payment page, the payment is recorded at its USD value. | The WHMCS invoice is not changed. If the client still pays a cancelled payment page, the payment is recorded at its USD value. |
Separate builds for OpenCart 4 and 3, with a connection test button and configurable order status mapping.
Adds TRX and USDT to your checkout and updates the order by itself once the payment confirms.
A predictable REST API for everything from invoices to withdrawals, with signed webhooks and a test mode.
Sign-up is free; your test keys are ready the moment you confirm your e-mail.