How USDT Payments Work
The StagePay USDT payment architecture, which identifies orders by receiving address and unique amount without private keys, and confirms payments after on-chain confirmations.
With StagePay USDT payments, the customer sends USDT directly to the merchant's receiving address, and StagePay queries the blockchain to confirm the deposit.
StagePay does not hold private keys
StagePay servers hold no wallet private keys. The receiving address is owned by the merchant (or by StagePay, depending on the contract), and StagePay only reads deposit history. As a result, funds go directly to the receiving address without passing through StagePay. Like PG credentials, receiving addresses are per app — two apps cannot use the same address (Merchant setup).
Assets other than USDT
BTC, LTC, ETH, BNB, POL, TRX, SOL, XRP and USDC are accepted with the same architecture (pg=CRYPTO). For method codes, price quotes and XRP destination tags, see Supported crypto assets.
Supported networks
method | Network | Token decimals | Default confirmations | Average confirmation time (approx.) |
|---|---|---|---|---|
TRC20 | Tron | 6 | 19 (solidified block) | About 1 minute |
ERC20 | Ethereum | 6 | 12 | About 3 minutes |
BEP20 | BNB Smart Chain | 18 | 15 | About 15 seconds |
POLYGON | Polygon PoS | 6 | 128 | About 5 minutes |
The internal amount amountMinor is always normalized to 6 decimal places (micro-USDT), regardless of network. Even when on-chain decimals are 18, as with BEP20 USDT, 10.500001 USDT = 10500001.
Unique amounts
Because a single receiving address accepts many orders at the same time, StagePay makes the amount slightly different for each order to tell deposits apart.
Payment amount (amountMinor) = base amount (baseAmountMinor) + unique offset (uniqueOffsetMinor)
Unique offset ∈ [1, 9999] micro-USDT (= 0.000001 ~ 0.009999 USDT)- The
(network, address, amountMinor)combination never overlaps between pending orders. Reservation is atomic, so it is safe under concurrent requests. - If you register multiple addresses, orders are distributed round-robin, and when one address's offsets are exhausted, the next address is used.
- The amount of an expired order is not reused for 24 hours after expiry (quarantine period). This prevents a late deposit from being wrongly matched to a new order with the same amount.
- The customer must send the exact amount shown on the screen (to 6 decimal places).
Conversion
If the product price is not in USDT, it is converted when the payment is created.
- Look up the product currency → USD exchange rate
- USD → USDT at 1:1
- Save the original amount, exchange rate, and conversion time as a snapshot in the transaction's
crypto.rate(unaffected by later exchange rate changes)
Example: product price ₩13,500, exchange rate 1 USD = 1,350 KRW → base amount 10.000000 USDT → offset 0.004217 → payment amount 10.004217 USDT.
Payment flow
1. request?pg=USDT&method=TRC20 … → pending transaction + crypto info created
2. Payment page: shows receiving address, exact amount, QR, time remaining (status auto-refreshes)
3. Customer sends funds
4. Worker queries USDT Transfers to the receiving address → matches the order with the same amount (detected)
5. Required confirmations reached → transaction transitions to success (confirmed) → merchant callback payment.succeededcrypto.state | Meaning |
|---|---|
awaiting | Waiting for deposit |
detected | Matching deposit found, waiting for confirmations |
confirmed | Confirmations reached, payment confirmed (status=success) |
expired | No deposit within the validity period (status=expired) |
underpaid | Deposit below the amount — not confirmed automatically |
overpaid | Deposit above the amount — not confirmed automatically |
late | Deposit after expiry — not confirmed automatically |
underpaid, overpaid, and late are reviewed by an operator in the console and then manually confirmed or returned. For details, see Exception handling.
Crypto details in callbacks
The payment.succeeded callback for a USDT payment uses the same fields as regular payments. currency, amount, and amountMinor are the currency and amount of the transaction (the product price), and the USDT deposit information confirmed on-chain is in originalPayload.
{
"event": "payment.succeeded",
"tid": "USDT-20260101090000123456-a1b2c3-1c2d3e4f",
"amount": 13500,
"amountMinor": 13500,
"currency": "KRW",
"transactionStatus": "success",
"status": "completed",
"paidAt": "2026-01-01T00:03:10.000Z",
"paymentMethod": "TRC20",
"pgProvider": "USDT",
"pgTid": "a1f0c3…e9",
"originalPayload": {
"network": "TRC20",
"txHash": "a1f0c3…e9",
"from": "TLa2f6VPqDgRE67v1736s7bJ8Ray5wYjU7",
"to": "TQn9Y2khEsLJW1ChVWFMSMeRDow5KcbLSE",
"amountMinor": 10004217,
"amount": "10.004217",
"expectedAmountMinor": 10004217,
"blockNumber": 68123456,
"confirmations": 19,
"contract": "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t",
"explorerUrl": "https://tronscan.org/#/transaction/a1f0c3…e9",
"matchReason": "exact"
}
}(Only the USDT-related fields are shown. The remaining fields are the same as in the callback payload.)
originalPayload field | Description |
|---|---|
network | TRC20 · ERC20 · BEP20 · POLYGON |
txHash | Deposit transaction hash (same as the callback's pgTid) |
from / to | Sending address / receiving address |
amountMinor / amount | Actual deposit amount confirmed on-chain (micro-USDT integer / 6-decimal string) |
expectedAmountMinor | Payment amount assigned to this order (base amount + unique offset, micro-USDT) |
blockNumber / confirmations | Deposit block number / number of confirmations at confirmation time |
contract | USDT token contract address |
explorerUrl | Block explorer link (Tronscan, Etherscan, BscScan, PolygonScan) |
matchReason | Matching reason. exact (exact amount), within_tolerance (within the allowed shortfall). Orders manually confirmed by an operator may have other values |
- Verify item grants with
amountMinorandcurrency(based on the product price), exactly as for other payments. If the product price itself is in USDT,currencyisUSDTandamountMinoris the base amount (micro-USDT) excluding the unique offset. - If you need the USDT amount actually received, use
originalPayload.amountMinor. The exchange rate snapshot (crypto.rate) is not included in callbacks; you can find it incryptoof the REST API transaction lookup.
Testing
How to verify your integration using the beta environment, PG-specific test payment methods, the test whitelist, callback resends, and the USDT mock chain.
Supported Crypto Assets (pg=CRYPTO)
BTC, LTC, ETH, BNB, POL, TRX, SOL, XRP and USDC alongside USDT — method codes, decimals, confirmations, price quotes, XRP destination tags and limits.