On this page
Blocks and confirmations in plain words
TRON does not record transactions one by one. It collects them into blocks, produces a new block about every three seconds and ties each block to the one before. Once your customer’s transfer is in a block, anybody can see it. What it does not have yet is anything on top of it.
Think of each later block as a brick laid on the ones below. Every block added after the one that holds the payment counts as one confirmation; ten confirmations means ten blocks on top. The higher the wall, the harder it is to swap a brick underneath, until at some point it cannot be done at all.
Why a payment that was seen is not yet final
The very tip of a chain can change, although rarely. If two producers publish different blocks at the same moment, the network carries on with two tips for a while and then settles on one. A transaction that sits only in the abandoned tip is as good as never made. This is called a fork.
On TRON, 27 super representatives take turns producing blocks. When more than two thirds of them, at least 19, have confirmed a block, it is treated as irreversible. Twenty confirmations clear that bar with a little room to spare and, at three seconds a block, take about a minute. When the count is reached, HisarPay looks the transaction up again among the irreversible records and checks that it succeeded and moved the same amount to the same address. Only then does your balance grow.
What the payer sees during that minute
The payment page refreshes itself, so there is nothing to press. It moves through three steps:
- Send: the amount, the address and the QR code are on screen. The page stays here until the payment shows up on the chain.
- Confirm: the page says “Payment detected”. The 20 segments of the ring fill one after another as confirmations come in, around a counter that climbs to 20 / 20.
- Done: with the last segment filled the page says “Payment received”. The payer can download a PDF receipt and go back to your store.
If the payer closes the page or the phone runs out of battery, nothing changes. Confirmations add up on the network and the page merely reports them. A payment spotted in the last seconds of an invoice does not get cut off either: we wait for its outcome before the invoice is closed.
What the seller should do at each stage
| Stage | What you see | What to do |
|---|---|---|
| Waiting | Invoice is pending | Reserve the order and the stock |
| Detected | “Confirming” in the dashboard, no webhook yet | Tell the customer it was seen, hand nothing over |
| Final | invoice.paid or invoice.overpaid | Fulfil the order |
| Short | invoice.partial | Remind the customer of the rest |
There is deliberately no webhook for “detected”. HisarPay sends webhooks, e-mails and Telegram alerts after confirmation only, so every payment notice your server gets is one you can act on. To show the in-between state on your own order page, read the invoice from the API:
const invoice = await hisarpay.invoices.retrieve(invoiceId);
const settled = invoice.status === 'paid' || invoice.status === 'overpaid';
const seen = invoice.payments?.some((p) => p.status === 'detected') ?? false;
if (settled) showThanks(); // the payment is final
else if (seen) showConfirming(); // seen, waiting for confirmations
else showWaiting();Use this for display only. Leave the decision to deliver to a webhook whose signature you verified; a customer landing on your success page proves nothing.
When a transaction fails
- In a block, but failed: if the sending wallet lacks the energy or TRX, a USDT transfer can stop halfway. The sender may lose the network fee, but the USDT never moves. HisarPay does not count it and the invoice keeps waiting.
- Never broadcast: an exchange is still reviewing the withdrawal, or the wallet did not publish it. There is no record on the chain, so there is nothing for the page to show.
- Seen, then gone: a transfer dropped in a fork is marked “Failed” in the dashboard and is never credited. This is the real reason for waiting for 20 confirmations.
- Fake token: transfers that carry the name USDT but come from another contract are ignored.
If a customer insists they paid and the page does not move, ask for the transaction ID (TxID) and check three things in a block explorer: did it succeed, is the recipient the address on the invoice, and is the token the official USDT? Those answers settle most cases. Why missing energy stops a transfer is covered in our article on TRON energy.
Could you settle for fewer?
The number of confirmations is not set per invoice on HisarPay. Every sale gets the same certainty and your order code stays simple. If a minute feels long, fill it instead of cutting it: prepare the receipt, confirm the delivery address, tell the customer what the rays mean. For a shop floor, we describe this in taking crypto with a QR card.
Screening happens at the same moment. If the sender turns out to be on a sanctions list, the payment is held even though it is final on the chain; see how incoming funds are screened. For short, excess and late amounts there is a guide to edge cases.
Frequently asked questions
How long do 20 confirmations take exactly?
Why is there no webhook when a payment is detected?
What if the customer closes the page while it is confirming?
Can a failed transaction mark an invoice as paid?
- #Confirmations
- #TRON
- #Blocks
- #Webhooks
Try crypto payments in test mode
No setup or monthly fees. Experiment as much as you like in test mode and go live when you are ready.