Skip to content
HisarPay

Accept TRX and USDT in your WooCommerce store

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.

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

What it does

  • Works with both the classic checkout and the newer block-based checkout.
  • Compatible with High-Performance Order Storage (HPOS).
  • Puts underpaid orders “On hold” and gives the customer extra time to send the rest.
  • If a webhook is late, it checks open orders against the API every 10 minutes, so no payment slips through.
  • The HisarPay box on the order screen shows the state, the amounts and the transactions, checks with one click and opens the invoice in the dashboard.
  • Pass the HisarPay commission on to customers and set the invoice lifetime to suit your store.
  • A payment that arrives after expiry moves the cancelled order back to “Processing” with a note to check stock.
The HisarPay option in the WooCommerce checkout

Requirements

WordPress
6.0 or later
WooCommerce
8.0 or later
PHP
7.4 or later (8.1+ recommended)
Domain
HTTPS with a valid certificate
HisarPay
An active account and an API key

Setup

  1. Step 1

    Install the plugin

    In WordPress admin, go to Plugins → Add New → Upload Plugin. Choose hisarpay-woocommerce.zip, install it and activate it.

  2. Step 2

    Create an API key

    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.

  3. Step 3

    Add the webhook endpoint

    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.

    Webhook URL
    https://yourstore.com/wp-json/hisarpay/v1/webhook
  4. Step 4

    Enable the payment method

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

  5. Step 5

    Try a test order

    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.

Settings

The fields on the plugin settings screen and what to enter in each:

API key
The hp_live_… or hp_test_… key from the dashboard. Stored encrypted on your server; if the site’s AUTH_KEY/AUTH_SALT change, enter the key and the secret again.
Webhook signing secret
The whsec_… value you get when you create the webhook endpoint. Every notification is verified with it.
Accepted coins
USDT, TRX or both. With both, the customer picks on the payment page.
Invoice lifetime
Between 5 and 1440 minutes. The default is 60.
HisarPay commission
Account default, you or the customer. When the customer pays, the commission is added to the amount due. On USDT invoices the fixed network fee is always included.
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.
Conversion rate
The value of 1 USD in your store currency, if that is not USD. Order totals are converted to USD at this rate. Until it is set, the method is hidden and an admin notice is shown.
Title and description
The name and short text customers see at checkout.
Debug log
When on, API and webhook traffic is written to the WooCommerce log, with keys masked.

State mapping

As the HisarPay invoice changes, the WooCommerce order moves to the state below. Every change is also added as an order note.

HisarPay stateWooCommerce order
PendingPending paymentInvoice created, the customer is on the payment page.
PaidProcessingWooCommerce moves the order straight to “Completed” when every item is both virtual and downloadable.
OverpaidProcessingThe extra amount is recorded in an order note.
UnderpaidOn holdThe customer can send the rest to the same address within the extra time.
ExpiredCancelledTime 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.
CancelledCancelledThe 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.

Frequently asked questions

My store sells in EUR. Can I use the plugin?
Yes. HisarPay invoices in USD. Enter the value of 1 USD in your store currency in the plugin’s “Conversion rate” field and order totals are converted at that rate. Keeping the rate current is up to you.
Why doesn’t HisarPay show up at checkout?
The method is hidden when the cart total is below the minimum invoice (10 USD), and in non-USD stores until a conversion rate is set. Also check that it is enabled under WooCommerce → Settings → Payments.
Does it show up in the block checkout?
Yes. The plugin registers a WooCommerce Blocks payment integration, so HisarPay appears in the block checkout and in the classic [woocommerce_checkout] shortcode.
What happens if a customer underpays?
The order goes “On hold” and the invoice gets extra time. When the customer sends the rest to the same address, the order moves to “Processing”. If it is not completed in time, you decide what to do; the amount received stays in your balance.
If the webhook cannot reach my server, does the order get stuck?
No. HisarPay retries failed deliveries at growing intervals, and the plugin also checks open orders against the API every 10 minutes. Whichever arrives first updates the order, and the same payment is never processed twice.
Can I issue refunds?
Crypto payments cannot be reversed on-chain. Open the invoice in HisarPay from the box on the order screen, send the refund to a TRON address the customer gives you, and mark the order as refunded by hand in WooCommerce. Do not send it to the address the payment came from: it may be an exchange’s.

WordPress payment buttons

A shortcode or Gutenberg block for donations, services or digital goods. No store setup needed.

  • WP 6+
  • PHP 7.4+
  • Gutenberg

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+

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.