Skip to content
HisarPay

Add crypto payments to your OpenCart store

Install the package for your version, enter your API key and press “Test connection”. The extension verifies every payment through a signed webhook and moves the order to the status you choose.

  • OpenCart 4 · PHP 8+
  • OpenCart 3 · PHP 7.1+

What it does

  • Dedicated packages for OpenCart 4.0–4.1 and for OpenCart 3.0.x.
  • One-click connection test: checks the key, test or live mode, and the webhook signing secret.
  • You pick which order status each HisarPay state maps to.
  • If a webhook is late, it checks open orders from the last 3 days against the API every 10 minutes.
  • A payment that arrives after expiry re-opens the cancelled order with a note.
  • Limit the payment method to certain geo zones or a minimum order total.
OpenCart extension settings with the connection test

Requirements

OpenCart 4
4.0.x or 4.1.x, PHP 8.0+ (your OpenCart release’s own PHP requirement applies)
OpenCart 3
3.0.x (tested on 3.0.3.3–3.0.5.1), PHP 7.1+ (your release’s requirement applies)
Currency
USD defined and enabled; otherwise the method is hidden
PHP extensions
curl and json
Domain
HTTPS with a valid certificate
HisarPay
An active account and an API key

Setup

  1. Step 1

    Pick the right package

    Use hisarpay.ocmod.zip for OpenCart 4 and hisarpay-oc3.ocmod.zip for OpenCart 3. Your version is shown at the bottom of the admin panel.

  2. Step 2

    Upload the package

    Upload it under Extensions → Installer without renaming the file. On OpenCart 4, also press Install on the uploaded package row. Then find HisarPay under Extensions → Extensions → Payments and press Install.

  3. Step 3

    Enter your keys

    Open the settings with the Edit button on the HisarPay row. Paste the API key and the webhook signing secret. Add the webhook URL the extension shows as an endpoint under Developers → Webhooks in the dashboard.

    https://yourstore.com/index.php?route=extension/hisarpay/payment/hisarpay.callback
  4. Step 4

    Test the connection

    Press “Test connection”. A green check confirms the key is valid and shows which mode it runs in. If the key has the read scope, it also confirms the webhook endpoint is registered in the dashboard.

  5. Step 5

    Map the statuses and enable

    Review the order status mapping, set the status to Enabled and save. Place an order with the test key and simulate the payment to try the whole flow.

Settings

The fields on the extension settings screen:

API key
Your hp_live_… or hp_test_… key.
Webhook signing secret
The whsec_… value you get when you create the endpoint in the dashboard.
Accepted coins
USDT, TRX or both.
Invoice lifetime
Between 5 and 1440 minutes.
HisarPay commission
Account default, you or the customer. On USDT invoices the fixed network fee is always included.
Geo zone and minimum total
Limits which customers see the payment method.
Receipt e-mail
Off at first. When on, the customer’s e-mail address is passed to HisarPay and one receipt is sent in your name once the payment is final; mention it in your privacy policy.
Sort order
Position in the list of payment methods.
Status checks
On OpenCart 4 they run through OpenCart’s scheduled tasks (your server must call cron.php). On OpenCart 3, schedule the keyed cron URL the extension shows. Without cron, checks run on storefront visits.

State mapping

The default mapping is below. Each row can be changed to any order status in your store from the extension settings.

HisarPay stateOpenCart order status
PendingPendingSet when the customer presses Confirm and is sent to the payment page; the order e-mail carries the payment link.
PaidProcessingPayment confirmed, ready to fulfil.
OverpaidProcessingThe extra amount is noted in the order history.
UnderpaidPendingThe shortfall is written to the order history; the customer can complete it within the extra time.
ExpiredCanceledTime ran out with no payment. A late payment re-opens the order with a note.
CancelledCanceledThe invoice was cancelled from the dashboard or the API.

Frequently asked questions

Can I install the OpenCart 4 package on OpenCart 3?
No. The two versions have different extension structures. Use hisarpay-oc3.ocmod.zip on OpenCart 3; both packages have the same settings and behaviour.
What does “Test connection” check?
Whether the API key is valid, whether it is a test or live key, whether the webhook signing secret is filled in and well-formed, and whether your server can reach HisarPay. If the key has the read scope, it also confirms the webhook endpoint is registered. It does not create any invoice or payment.
My store sells in EUR. What happens?
The extension converts the order total to USD using the USD rate in OpenCart. Make sure USD is defined and enabled under System → Localisation → Currencies and that its rate is current. If USD is not enabled, the method is hidden and the settings page shows a warning.
What if a payment arrives after the order has shipped?
If you have moved the order on to a status such as Shipped or Complete, the extension leaves the status alone and only adds a note to the order history. A late payment on a cancelled order re-opens it.
Can I map paid orders to “Complete” instead of “Processing”?
Yes. If you sell digital goods you can move paid orders straight to “Complete”. Each HisarPay state has its own setting.

WooCommerce

Adds TRX and USDT to your checkout and updates the order by itself once the payment confirms.

  • WP 6+
  • WC 8+
  • PHP 7.4+
  • HPOS

WHMCS

Adds a crypto option to your server and domain invoices; the payment is entered on the WHMCS invoice by itself.

  • WHMCS 8
  • PHP 7.4+

REST API

A predictable REST API for everything from invoices to withdrawals, with signed webhooks and a test mode.

  • REST
  • OpenAPI 3.1
  • Webhooks

Your first collection is an e-mail away

Sign-up is free; your test keys are ready the moment you confirm your e-mail.