Broker Client DemoSPG integration sandbox
Integrate Setup Checkout
Developer API & activity
Connected to … API key not set

Connect your sandbox app

Four steps in the SPG sandbox dashboard. When every check below is green, go to Checkout.

1. Your sandbox API key

Sandbox keys only. The key stays on this demo server (30 days after your last visit) and is never shown again. "Forget me" deletes it now.

2–4. Settings on your SPG app

Paste into your app's Callback URL. It is unique to you, so only you see these callbacks.
SPG only accepts calls from whitelisted IPs. When you run this demo or your own backend, whitelist that server's public IP instead.
4. Enable networks Turn on TRC20, ERC20 and/or BEP20 on your app, set a payout address for each, and top up each network's gas wallet with testnet coins.

Check

  • Press Test connection.
Go to Checkout

Checkout

What your customer sees: pick a network, pay to the address, get credited.

Users

Client idNetworkAddressCreated

Callbacks

Receivedspg_tx_IDResultAction

Developer

API (Swagger) Activity

Code to copy

Sign and call, get an address, handle the callback and verify. The same flow this demo runs.
Loading…
Download Download spg-client.js

API reference

Try it out sends through this demo, which signs the request with your saved key and forwards it to SPG. Every call also appears under Activity.
Real traffic: every call this demo sent to SPG (from Checkout, Swagger or the error buttons) and every callback SPG sent back.
    Pick a request.

    Check my signature

    Your own code gets 401 invalid signature? Paste what it sent. This uses your saved key on this server.

    Simulate a callback

    Sends SPG's exact callback, {"spg_tx_ID": "…"}, to your demo callback handler so you can watch verify-then-credit without a real deposit. A made-up id shows the "not found" path.

    Try an error

    Each button sends a deliberately broken request to SPG. The real reply shows here and in the log above.