01What a gateway is — and isn't
A wallet stores keys. An exchange trades assets. A payment gateway sits between your checkout and the blockchain: it creates a payment request, watches the chain for the customer's transfer, decides when it counts as paid, tells your backend, and gets the funds to where you can use them.
The hard parts are operational rather than cryptographic — watching several networks reliably, handling partial, late and duplicate payments, and keeping a ledger that always matches the chain. That is what you buy instead of building.
02The six steps
- 01Create an invoice. Your backend asks the gateway for a payment of, say, 49.99 USD in USDT on Tron. The gateway converts it, locks the rate and returns a deposit address that belongs to this invoice alone.
- 02Show the customer the address. Your checkout displays the address and amount, usually as text plus a QR code, with a countdown to expiry.
- 03The customer pays. They send the asset from any wallet or exchange. The gateway's chain listener sees the transaction and the invoice moves from
pendingtodetected. - 04Wait for confirmations. One block isn't proof of payment; the invoice sits in
confirminguntil the network's required number of confirmations is reached. See crypto payment confirmations. - 05Confirm and notify. The invoice becomes
confirmed, the merchant's ledger is credited and a signed webhook tells your backend to release the order. - 06Settle and withdraw. The deposit is swept from the one-time address to the merchant's wallet (
forwarding, thensettled), after which the balance can be withdrawn to any address.
03Why every invoice gets its own address
With one address per invoice, the gateway can attribute an incoming transfer to an order without asking the customer to paste a memo or transaction hash. The amount, the network and the address together identify the payment, which is also what makes underpayments and late payments detectable rather than ambiguous.
04Where the money sits
That depends on the provider. Payaries holds the funds for you: each merchant has a dedicated wallet per chain — never pooled with other merchants — and the on-chain balance can be checked against a block explorer. The trade-offs are covered in managed vs self-held payment gateways.
05What integration looks like
For a developer it is three pieces: a server call to create the invoice, a checkout that displays the address, and a webhook endpoint that marks the order paid. The crypto payment API page shows each with real requests.
Questions
- What is a crypto payment gateway?
- A service that creates payment requests for blockchain transfers, watches the network for the customer's payment, decides when it is confirmed, notifies the merchant's backend and gets the funds to the merchant. It is to crypto what a card gateway is to card payments.
- How is a payment gateway different from a crypto wallet?
- A wallet stores keys and sends or receives funds. A gateway adds the payment layer around that: invoices, per-order deposit addresses, confirmation tracking, webhooks, a ledger and settlement.
- Why does a gateway wait for confirmations?
- A transaction seen on the network can still be dropped or reorganised shortly after. Waiting for several confirmations makes it safe to treat the payment as final.
Keep reading
- What is a crypto payment gateway?What a crypto payment gateway is, what it does for a merchant, how it differs from a wallet or exchange, what to look for, and how to start accepting crypto.
- Crypto payment confirmations, explained for merchantsHow blockchain confirmations work for merchants: what each invoice status means, when a payment counts as paid, and credited vs withdrawable.
- A crypto payment API that behaves like the rest of your stackA REST crypto payment API: create an invoice, get a one-time deposit address, receive signed webhooks and withdraw on demand. HMAC-signed and idempotent.
- Accept USDT payments on Ethereum, BNB Smart Chain, Polygon, Arbitrum, Tron and moreAccept USDT on Ethereum, BNB Smart Chain, Polygon, Arbitrum and Tron — and more networks as they ship — through one API, with a locked fiat rate and on-demand withdrawals.
- Managed vs self-held crypto payment gatewaysWhat managed and self-held payment gateways mean for control, speed and risk — and what to ask any provider about where your funds sit.
- A crypto payment gateway for Web3 companiesTake stablecoin and native-coin payments for your Web3 product through one API: dedicated wallets per network, signed webhooks, custom-token requests and on-demand withdrawals.
- Accept crypto payments in your online store, SaaS or marketplaceAdd crypto checkout to an online store, SaaS product or marketplace through a REST API: price in fiat, accept USDT or USDC, and release the order from a signed webhook.