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.
Besides USDT, StagePay accepts the assets below with the same private-key-free architecture: the customer sends directly to your receiving address, and StagePay only reads the blockchain to confirm the payment. Use pg=CRYPTO; existing pg=USDT integrations keep working unchanged.
Method codes
method is the asset × network code. Pass it with pg=CRYPTO.
method | Asset | Network | On-chain decimals | Amount precision shown | Default confirmations | Order identification |
|---|---|---|---|---|---|---|
BTC | Bitcoin | Bitcoin | 8 | 8 | 2 | Unique amount |
LTC | Litecoin | Litecoin | 8 | 8 | 6 | Unique amount |
ETH | Ether | Ethereum | 18 | 8 | 12 | Unique amount |
BNB | BNB | BNB Smart Chain | 18 | 8 | 15 | Unique amount |
POL | POL | Polygon PoS | 18 | 6 | 128 | Unique amount |
TRX | TRX | Tron | 6 | 6 | 19 (solidified) | Unique amount |
SOL | SOL | Solana | 9 | 9 (allocated in 10-lamport steps) | finalized | Unique amount |
XRP | XRP | XRP Ledger | 6 | 6 | validated ledger | Destination tag |
USDC_ERC20 | USDC | Ethereum | 6 | 6 | 12 | Unique amount |
USDC_BEP20 | USDC (Binance-Peg) | BNB Smart Chain | 18 | 6 | 15 | Unique amount |
USDC_POLYGON | USDC (native) | Polygon PoS | 6 | 6 | 128 | Unique amount |
USDC_SOL | USDC (SPL) | Solana | 6 | 6 | finalized | Unique amount |
TRC20 ERC20 BEP20 POLYGON | USDT | as before | 6 | as before | Unique amount |
- With
pg=CRYPTO, USDT can also be writtenUSDT_TRC20,USDT_ERC20,USDT_BEP20,USDT_POLYGON. Passing justUSDTorUSDClets the customer choose among the enabled networks of that asset; omittingmethodshows every enabled asset. pg=USDTstill accepts only USDT networks, and its legacy aliases (TRX→TRC20,ETH→ERC20, …) keep their old meaning. Withpg=CRYPTO,ETHmeans native Ether.- USDC on Tron is not supported: Circle discontinued USDC on Tron.
- USDC contracts follow Circle's official list (Ethereum
0xA0b8…eB48, Polygon PoS native USDC0x3c49…3359, Solana mintEPjF…Dt1v). Circle does not issue USDC on BNB Smart Chain;USDC_BEP20is Binance-Peg USD Coin (0x8AC7…580d, 18 decimals, issued by Binance). Enable it only if you accept that issuer.
https://pay.stagepay.io/request?appId=…&pg=CRYPTO&method=BTC&productId=gem_100¤cy=KRW&userId=user_42
https://pay.stagepay.io/request?appId=…&pg=CRYPTO&method=USDC&productId=gem_100¤cy=USD&userId=user_42 # customer picks the USDC network
https://pay.stagepay.io/request?appId=…&pg=CRYPTO&productId=gem_100¤cy=KRW&userId=user_42 # customer picks coin and networkPrice quotes
Products stay priced in fiat (KRW, USD, …). StagePay never accepts a price sent by the client.
- USDT / USDC: converted to USD at the FX rate and 1:1 to the stablecoin, exactly as for USDT (base amount rounded up to 0.01, payment valid for
expire_minutes, default 30 minutes). - Volatile assets: product currency → USD (FX rate) → asset, using a market price fetched by the server: CoinGecko first, Binance public ticker as fallback (no API keys required). Prices are cached for 60 seconds; if every source fails, a cached price at most 5 minutes old is used, otherwise the payment is refused (
price_unavailable) rather than guessed. - The amount is rounded up (the merchant never receives less), and the price is locked for
quote_minutes(default 15). That is also the payment validity; a transfer that arrives later is handled aslate(operator review), just like a USDT payment after expiry. - The rate snapshot (
crypto.rate: FX rate, asset USD price, source and time) is saved on the transaction.
Example: ₩15,000 at 1 USD = ₩1,388.9 and BTC = $60,000 → 10.80 USD → base 0.00018000 BTC → unique offset 0.00000437 → payment amount 0.00018437 BTC.
Unique amounts and destination tags
- As with USDT, each order gets a slightly different amount on the same address. The offset range depends on the asset so that it stays economically negligible: BTC and ETH 1–999 minimum units, the others 1–9,999 (SOL in 10-lamport steps so that 8-decimal exchange withdrawals can match).
- XRP uses a destination tag instead. Every order gets its own tag (a random number between 100,000 and 4,294,967,295) on your XRP address; the amount itself is not unique. The checkout shows the tag prominently with its own copy button. A payment without the tag, or with an unknown tag, is kept as an unmatched deposit for operator review.
- Amounts and tags of expired orders are quarantined for 24 hours, as for USDT.
Underpayment tolerance
Volatile assets accept a small shortfall automatically: by default up to 0.5 % of the amount (underpay_tolerance_bps, see Merchant setup). Overpayments and larger shortfalls go to operator review. Stablecoins keep the USDT rule (underpay_tolerance_minor, default 0).
How deposits are watched
All assets are watched by the same worker as USDT (bin/usdt-watcher.php), with the same locks, cursors, alerts and confirmation → callback path. It only reads public chain data.
| Asset | Source | Notes |
|---|---|---|
| BTC, LTC | Esplora REST (mempool.space, litecoinspace.org or your own) | A mempool transfer is shown as "detected" immediately; confirmations are counted once it is in a block. If it disappears (RBF replacement/drop), the match is reverted. |
| ETH, BNB, POL | Standard JSON-RPC, block scan (eth_getBlockByNumber) + receipt status | Uses the same RPC_URL_ERC20 / RPC_URL_BEP20 / RPC_URL_POLYGON as USDT. Transfers sent from inside a smart contract (internal transactions, some smart wallets or exchange batch payouts) are not visible to a block scan and are not detected automatically. |
| USDC (EVM) | eth_getLogs Transfer logs of the USDC contract | Same path as USDT. |
| TRX | TronGrid account transactions (TransferContract, solidified only) | TRX sent by a contract call is not detected. |
| SOL, USDC (SPL) | Solana JSON-RPC, finalized commitment only | Register your wallet (owner) address, not a token account. USDC arrives in that wallet's associated token account; a first deposit that creates it is still detected. |
| XRP | rippled / Clio account_tx, validated ledgers only | The amount used is delivered_amount, so partial payments cannot fake a full payment. The receiving account must be activated (holds the XRP reserve). |
Checkout page
The checkout shows the asset name, the exact amount with all decimals, a QR code, the address and a countdown. For new assets the QR code (and the "Open in wallet" button) carries a payment URI by default: bitcoin: / litecoin: (BIP-21 with amount), ethereum: (EIP-681 with chain ID and amount) and solana: (Solana Pay). Tron and XRP have no common URI standard, so their QR code contains the address only; for XRP the destination tag is shown in a highlighted box. The page works on 375 px wide phones without horizontal scrolling and with tap targets of at least 44 px.
Callback
The payment.succeeded callback has the same shape as for USDT. For assets other than USDT, originalPayload additionally contains asset (e.g. BTC), decimals (precision of amountMinor) and, for XRP, destinationTag. contract is null for native coins. amountMinor/amount at the top level remain the product price in the product currency.
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.
USDT Merchant Setup
How to configure networks, receiving addresses, confirmations, validity period, and underpayment tolerance to enable USDT payments.