Skip to Content
StagePayDocs v2

USDT Exception Handling

What StagePay and the merchant do in cases of underpayment, overpayment, deposits after expiry, transfers on the wrong network, and unmatched deposits.

StagePay automatically confirms only deposits whose amount and timing match exactly. Other cases are not processed automatically, to prevent loss of funds or incorrect grants, and are left for operator review.

Situationcrypto.stateTransaction statusAutomatic handlingCallback
Exact amount, within the validity periodconfirmedsuccess✅ Confirmedpayment.succeeded
Underpayment (within tolerance)confirmedsuccess✅ Confirmedpayment.succeeded
Underpayment (exceeds tolerance)underpaidpending → expired on expiry❌ ReviewNone
Overpaymentoverpaidpending❌ ReviewNone
Deposit after expirylateexpired❌ ReviewNone
Waiting for confirmationsdetectedpendingConfirmed when confirmations are reachedOn confirmation
Sent on a different network/token—pending/expired❌ Cannot be detectedNone
Deposit whose amount matches no orderUnmatched deposit—❌ HeldNone

Handling after review

An operator (or an authorized merchant staff member) chooses one of the following in the console.

  • Manual confirmation — Accepts the deposit and transitions the transaction to success. This goes through the same common confirmation path as a regular payment, so the payment.succeeded callback is sent once.
  • Return (refund) — StagePay cannot make blockchain transfers on your behalf, so the merchant returns funds directly from the receiving wallet. Record the result (the return txHash) in the console. See Settlement and refund policy.
  • Manual matching — Links an unmatched deposit to a specific order (e.g. when the customer submits the transaction ID and txHash).

Processed chain transactions are recorded only once per (network, txHash, logIndex), so the same deposit can never be confirmed twice.

Common situations

Exceptions for assets other than USDT

  • Missing or wrong XRP tag — A payment without a destination tag, or with an unknown tag, is never linked automatically even if the amount matches; it is kept as an unmatched deposit. Ask the customer for the txHash and match it manually.
  • Price lock expired — For volatile assets the payment validity is quote_minutes (default 15). Deposits arriving later are reviewed as late (not auto-confirmed because of price movement).
  • BTC/LTC mempool transfer disappeared — If it is replaced (RBF) or dropped before being mined, the match is reverted and the order is waiting for payment again (an operational alert is sent).
  • Internal contract transfers — ETH, BNB, POL or TRX sent by a smart contract through an internal call are not detected. If the customer sends a txHash, check the balance and handle it manually.
  • Small shortfall on volatile assets — Up to 0.5% by default is confirmed automatically (matchReason=within_tolerance); more goes to underpaid review.

On this page