Test your crypto checkout in a sandbox
The OpenBCP sandbox is a free copy of the payment API. Payments are simulated, confirm in about 3 seconds, and move no real funds, so you can build and test the whole flow before using real USDT.
What the sandbox is
The OpenBCP sandbox is a separate, free copy of the payment API at https://sandbox.openbcp.com. It simulates USDT payments: there is no blockchain, no wallet and no real money. Each payment confirms about 3 seconds after the invoice is created, so you can test the full flow quickly.
Sandbox vs live
| Sandbox | Live | |
|---|---|---|
| Base URL | https://sandbox.openbcp.com | https://openbcp.com |
| API key | Starts with test_ | Your live key |
| Money | None, simulated | Real USDT on BNB Smart Chain |
| Data kept | Invoices deleted after 24 hours | Permanent |
Get a test key
- Sign in at openbcp.com with Google or a wallet.
- Open Dashboard, then Integration, then Sandbox.
- Copy your test key.
Create a test invoice
curl -s -X POST https://sandbox.openbcp.com/api/v1/payment \
-H "X-openbcp-Api-Key: $PAYGATE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"amount_usdt":"10.00","external_id":"order-1","callback_url":"https://YOUR-TUNNEL/webhook"}'
Open the returned payment_url. The page shows a test mode banner and completes by itself. Your webhook fires with a signature identical to live.
Test scenarios
Add sandbox_scenario to the request to simulate different outcomes.
| Value | What happens | Final status |
|---|---|---|
paid (default) | Full payment confirms after about 3 seconds | PAID |
overpaid | 110% confirms after about 3 seconds | OVERPAID |
partial | 50% confirms, then the invoice later expires | PARTIAL, then EXPIRED |
expired | No payment, marked expired after about 3 seconds | EXPIRED |
unpaid | Nothing happens until natural expiry | UNPAID, then EXPIRED |
Going live
The sandbox uses the same endpoints, fields, statuses and webhook signing as live. To go live, change two values and nothing else:
PAYGATE_URL=https://openbcp.com
PAYGATE_API_KEY=your_live_key
Before launch, make sure your webhook handler verifies signatures and is idempotent, set your receiving wallet address in the dashboard, and make one small real payment to confirm. Never ship a test_ key to production.
For AI agents and tools
Machine-readable files are available: the integration guide in Markdown, the OpenAPI spec and llms.txt.
See also the crypto checkout API guide and webhook verification.
Frequently asked questions
Is the sandbox free?
Yes. It uses test API keys that start with test_ and never moves real funds.
How do I get a sandbox key?
Sign in, open Dashboard, then Integration, then Sandbox, and copy the test key.
Can I test underpayments and expired invoices?
Yes. Set sandbox_scenario to paid, overpaid, partial, expired or unpaid when you create the invoice.
How do I go live?
Change the base URL to https://openbcp.com and use your live API key. No code changes are needed.
How long is sandbox data kept?
Invoices are deleted after 24 hours.