Guides
Common mistakes
Twelve real integration failures, each a support ticket we do not want.
- Parsing amounts as floats or JSON numbers. They are strings. Always.
- Hardcoding 6 decimals. USDT/USDC on BSC are 18.
- Re-serializing the body before HMAC. Use the raw bytes.
- Trusting the payload before verifying the signature. Verify first.
- Not deduping on
event.id. Delivery is at-least-once. - Assuming event order. Order on
sequence. - Treating
deposit.detectedas money. Onlyconfirmedis. - Ignoring
deposit.orphaned. Reorgs are rare, not impossible, and unhandled they leave your ledger permanently wrong. - Omitting the TON memo. Funds sent without it cannot be attributed.
- Retrying a payout without an
Idempotency-Key. That is how you pay twice. - Polling instead of subscribing. Webhooks are immediate; polling burns your rate limit.
- Doing work before returning 2xx. Ack, then process.