WordPress payment buttons
A shortcode or Gutenberg block for donations, services or digital goods. No store setup needed.
- WP 6+
- PHP 7.4+
- Gutenberg
Your customer chooses HisarPay at checkout and pays with TRX or USDT on a secure hosted page. Once the payment confirms on-chain, the order moves to “Processing” on its own. Nothing for you to do by hand.
In WordPress admin, go to Plugins → Add New → Upload Plugin. Choose hisarpay-woocommerce.zip, install it and activate it.
In the HisarPay dashboard, open Developers → API keys and create a key. Start with a key that begins with hp_test_; test keys never touch the blockchain.
Copy the webhook URL shown on the plugin settings screen. In the dashboard, go to Developers → Webhooks, create an endpoint with that URL and select the invoice.* events. Paste the signing secret (whsec_…) into the plugin settings.
https://yourstore.com/wp-json/hisarpay/v1/webhookUnder WooCommerce → Settings → Payments, enable HisarPay. Edit the title and description customers see, then press “Test connection”. It verifies the key, checks the signing secret’s format and that your store’s URL is registered as an endpoint. The webhook shows as verified once a signed event has arrived; send a test event from the dashboard if needed.
Place an order with the test key. Use the simulation buttons on the payment page to try the paid, underpaid and expired cases. When the order states change the way you expect, switch to your live key.
The fields on the plugin settings screen and what to enter in each:
As the HisarPay invoice changes, the WooCommerce order moves to the state below. Every change is also added as an order note.
| HisarPay state | WooCommerce order | Details |
|---|---|---|
| Pending | Pending paymentInvoice created, the customer is on the payment page. | Invoice created, the customer is on the payment page. |
| Paid | ProcessingWooCommerce moves the order straight to “Completed” when every item is both virtual and downloadable. | WooCommerce moves the order straight to “Completed” when every item is both virtual and downloadable. |
| Overpaid | ProcessingThe extra amount is recorded in an order note. | The extra amount is recorded in an order note. |
| Underpaid | On holdThe customer can send the rest to the same address within the extra time. | The customer can send the rest to the same address within the extra time. |
| Expired | CancelledTime ran out and stock is restored. If part of the amount arrived before expiry, the order is not cancelled but put “On hold” with a note. | Time ran out and stock is restored. If part of the amount arrived before expiry, the order is not cancelled but put “On hold” with a note. |
| Cancelled | CancelledThe invoice was cancelled from the dashboard or the API. Only orders that are still unpaid are cancelled; an order you put on hold is left alone. | The invoice was cancelled from the dashboard or the API. Only orders that are still unpaid are cancelled; an order you put on hold is left alone. |
A shortcode or Gutenberg block for donations, services or digital goods. No store setup needed.
Separate builds for OpenCart 4 and 3, with a connection test button and configurable order status mapping.
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.