Guides
Node.js
fetch + node:crypto, no SDK. Express raw-body webhook.
ServerPython
FastAPI + httpx, hmac.compare_digest, raw body first.
ServerPHP
hash_hmac + cURL, php://input, hash_equals.
Game engineUnity
C# client calls your backend; secret never ships in the build.
Game engineUnreal Engine
C++ HTTP to your backend, server-authoritative grants.
CommunityDiscord bot
Sell a role with a payment link, grant on a verified webhook.
The pattern that does not change
- 1
Sign on the server
timestamp, nonce, method, path and raw body → HMAC-SHA256. The secret never leaves the server, including in game clients.
- 2
Create one order per purchase
Send amount + your own order reference. The reference is the idempotency key; reuse it on retry.
- 3
Send the player to checkout_url
Browser redirect, deep link, or a button in chat. The player picks chain and asset there.
- 4
Deliver only on a verified payment.succeeded
Verify
timestamp.body, reject older than five minutes, deduplicate by event_id, then grant.
Integration questions
Is there an official SDK?
No. The API is small enough that a readable 20-line module beats a dependency; the guides give you that module per stack.
Can I test without a server?
Payment links cover no-backend flows. For webhooks you need an endpoint; a local tunnel plus sandbox keys is enough.
Which stack is fastest to ship?
Whichever one you already deploy. The integration is three moves; the stack only changes the raw-body handling.
Open the sandbox and send yourself a test order
The sandbox is the default. Create an app, create an order, watch a webhook arrive — then flip one environment variable.