How does settlement work?
1
Funds arrive in hot wallet
When a customer’s payment is confirmed (
ORDER_SUCCESS), the USDT (or other token) sits in the gateway’s hot wallet — an online wallet used for receiving payments.2
Sweep is triggered
Settlement can be triggered in two ways:
- Automatic: The gateway monitors accumulated balances and initiates a sweep when configurable thresholds are met (e.g., every 1000 USDT or every hour).
- Manual: An administrator triggers a sweep through the gateway dashboard.
3
On-chain transfer
The gateway constructs and signs a blockchain transaction that transfers the accumulated tokens from the hot wallet to the cold storage address. This transaction pays standard blockchain gas fees.
4
Sweep confirmed
Once the transfer transaction reaches sufficient block confirmations, a
COLLECT_SUCCESS webhook is sent. If the transaction fails, COLLECT_FAILED is sent.Configuration
You configure settlement in the gateway configuration (.env file or environment variables):
Settlement vs. Payout
Webhook Events
Settlement events are delivered via the same webhook system as order events:Settlement is a non-custodial process — the gateway is just software that moves funds according to your rules. At no point does any third party have access to your private keys or the ability to redirect funds. All transactions are signed locally within your Docker container.

