Skip to content
HisarPay
  • Crypto basics
  • Published:
  • Reading time: 5 min read
  • Türkçe oku

What a confirmation is, and why we wait for 20

The customer says “sent”, the payment page says “detected”, and yet the order stays where it is. Knowing what happens in the minute between lets you answer the customer well and keeps you from shipping too early.

On this page
  1. Blocks and confirmations in plain words
  2. Why a payment that was seen is not yet final
  3. What the payer sees during that minute
  4. What the seller should do at each stage
  5. When a transaction fails
  6. Could you settle for fewer?
  7. Frequently asked questions

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 wait buys youIn exchange for a minute of waiting you hold a payment that no later dispute can take back. That finality works both ways: a refund is only possible as a separate withdrawal that you send.

What the payer sees during that minute

The payment page refreshes itself, so there is nothing to press. It moves through three steps:

  1. Send: the amount, the address and the QR code are on screen. The page stays here until the payment shows up on the chain.
  2. 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.
  3. 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

StageWhat you seeWhat to do
WaitingInvoice is pendingReserve the order and the stock
Detected“Confirming” in the dashboard, no webhook yetTell the customer it was seen, hand nothing over
Finalinvoice.paid or invoice.overpaidFulfil the order
Shortinvoice.partialRemind 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:

Showing the in-between state on an order pageTypeScript
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.

Two separate messagesSplit your messages along the same line. “We have seen your payment” informs; “your payment is final, we are preparing your order” promises. Send the second one only after the webhook.

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?
TRON produces a block roughly every three seconds, so about a minute. A delay on the network or on our side can stretch that a little; the payment is not lost.
Why is there no webhook when a payment is detected?
Because a detected payment is not final yet. Webhooks are sent after 20 confirmations. Until then you can see the payment in the dashboard or by reading the invoice from the API.
What if the customer closes the page while it is confirming?
Nothing happens to the payment. Confirmations continue on the network, the invoice becomes paid and the webhook is sent. Opening the same link again shows the current state.
Can a failed transaction mark an invoice as paid?
No. Only transfers that succeeded on the chain count, either in TRX or from the official USDT contract.
  • #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.

More guides that go well with this one.