
How a forwarding crypto payment gateway works
Understand Suawave's forwarding crypto payment API: deposit addresses, payout wallets, signed callbacks, per-deposit fees and the checkout work you own.
Published , updated
A forwarding crypto payment gateway creates a deposit address, detects an eligible payment, forwards it to your payout wallet and calls your server with the result. Suawave is a crypto payment gateway without registration: there is no account or API key. Your application supplies the payout address and callback URL for the selected ticker.
The small request is appealing. The useful question is what happens around it: which address the buyer pays, when the money reaches you, and what your website must record before it releases an order. This guide connects that flow to the detailed implementation articles.
Follow the payment from checkout to payout
- Create and display the deposit address.
- Wait for forwarding and verify the callback.
- Read minimums and fees from their sources.
- Choose the route and integration model.
Create and display the deposit address
You need a receiving wallet compatible with the selected asset and network, an HTTPS callback endpoint and server-side order storage. Your server calls GET /{ticker}/create/ with address set to your payout address and callback set to the URL that identifies this order. The quickstart walks through those parameters.
The response separates two destinations. address_in is where the buyer sends. address_out is where Suawave forwards the eligible deposit. Store both with the selected ticker. Showing the payout address in place of the deposit address bypasses the payment route your order expects.
| Stage | Gateway responsibility | Your application’s responsibility |
|---|---|---|
| Create | Assign the deposit address | Store the order and original callback URL |
| Pay | Detect the supported asset on the selected network | Show the address, network, amount and minimum |
| Forward | Send the eligible deposit to the payout address after fees | Keep checkout waiting for the confirmed event |
| Callback | Deliver signed payment data | Verify, record and apply the order’s amount policy |
A ticker names the route, not just the token. trc20/usdt means USDT on TRON; erc20/usdt means USDT on Ethereum. Native TRX uses trx. Even when two networks accept the same address shape, the network remains part of the order.
The canonical ticker and callback URL pair identifies the order permanently. Repeating that pair returns the existing deposit address. The first call fixes callback options, and a different payout address for that pair is refused. Use a distinct callback URL with an unguessable nonce for every independently tracked order.
Permanent identity doesn’t mean an unlimited payment window. Store the returned expires_at; repeating create doesn’t extend it. Stop showing an expired address and create a new order with a distinct callback URL when the buyer starts again. The API reference documents the supported parameters and identity rules.
Does a QR code complete the checkout?
It helps the buyer enter the destination. It doesn’t establish payment. Suawave’s TRON QR payload is the address alone, including for native TRX; keep the amount visible beside it. EVM token requests with an amount encode an EIP-681 transfer request, but wallet support varies and the payer may change the amount.
For a complete USDT implementation, use the USDT payment walkthrough. It covers the QR response and the fields to retain on your server.
Wait for forwarding and verify the callback
With pending=1 at creation, an eligible detected deposit can produce a callback with pending equal to "1". Use that event to show progress. A callback with pending equal to "0" means the forwarding transaction has confirmed. Check its signature, order binding and amount before fulfillment.
A buyer’s wallet can show a sent transfer while the shop still waits. Inbound finality and outgoing forwarding are separate stages. Crypto payment finality explains the TRON, BSC and Ethereum differences without turning a block interval into a checkout deadline.
Verify x-ca-signature with the public key from GET /pubkey/. GET callbacks sign the full external URL; POST callbacks sign the raw body. Preserve those bytes before parsing. The RSA-SHA256 verification guide includes the existing language examples.
Then match address_in, coin, the stored order reference and nonce. For POST, custom callback query parameters remain outside the signed body, so deposit-to-order binding still matters. Securing payment webhooks covers that boundary and durable event processing.
Retries keep the event UUID. Pending and confirmed events have different UUIDs. Record each accepted event durably, count confirmed money once and prevent a late pending event from reversing confirmation. Respond with HTTP 200 and the plain body *ok* after committing acceptance. The callback documentation defines delivery and acknowledgement.
What if delivery fails?
Retrieve GET /{ticker}/logs/ with the original callback URL. A sent result means forwarding confirmed but the confirmed callback hasn’t been acknowledged, including exhausted retries. done means it was acknowledged. The complete callback URL is a retrieval capability; keep it out of customer links and analytics.
Read minimums and fees from their sources
Read minimum_transaction_coin from info or create for the chosen ticker. The order total and the deposit minimum answer different questions. An eligible deposit may leave your order underpaid; a below-minimum transfer produces no callback and isn’t forwarded.
Each eligible deposit is forwarded and charged separately. Decide whether your shop credits the gross deposit in value_coin or requires a net receipt in value_forwarded_coin. The latter already has the total fee_coin deducted. Don’t subtract it again. Use exact decimal arithmetic or integer asset units throughout.
The fees and minimums guide explains current fee behavior. The estimate endpoint returns a configured native-coin forwarding ceiling, which serves a different purpose from the deposit fee fields. It isn’t the amount deducted from a token payment.
Two transfers toward one purchase need two payment records, but one fulfillment decision. A repeated delivery needs no additional payment record. Underpayments, overpayments and late transfers covers those cases, including why a small top-up can itself fall below the minimum.
Choose the route and integration model
Start with the asset and network your buyers can send and your payout wallet can receive. USDT TRC20 vs BEP20 compares the checkout choices using generated minimum and fee values. Accepting native TRX explains direct TRX transfers and why their resource and fee rules differ from USDT on the same chain.
A forwarding API fits when your application owns order state and you want eligible deposits forwarded to your chosen wallet. Suawave doesn’t provide a merchant dashboard or an accumulated balance to withdraw later. Your application owns the payment display, amount policy, receipts and fulfillment records.
If you need a hosted invoice page, a managed merchant interface or a different settlement asset, compare the actual workflow before integrating. The existing forwarding API comparison, NOWPayments comparison, CoinPayments comparison and Plisio comparison map those differences to the integration work.
Can one address accept every asset?
A created order belongs to its ticker. Don’t advertise it as a multi-asset payment destination. Offer a separate, clearly labeled checkout route for each supported asset and network, and store which route the buyer selected.
What does the first HTTP request leave to build?
It creates a deposit destination. You still need the checkout display, callback verification and durable order handling. Start with the quickstart, implement the confirmed-payment path, then walk through duplicate delivery and an underpaid order before opening checkout to customers.