Get started
Testing
Testnet only
Everything runs on Base Sepolia (chain id 84532). Test USDC and test ETH have no value. Live API keys (sk_live_…) are refused with live_mode_disabled.What you need
- A test API key (
sk_test_…) from ClearGateway staff. - A browser wallet (for example MetaMask or Coinbase Wallet) on Base Sepolia. Add the network if your wallet does not list it.
- Test USDC in that wallet, from a public Base Sepolia USDC test faucet, and a little test ETH for network fees.
A full test run
- Create a payment for a small amount, such as
"1000000"(1 USDC). - Open its
checkout_url. On the Wallet tab connect, approve USDC, then confirm the payment. - Watch the payment go
awaiting_payment→confirming→succeededin the dashboard or withGET /v1/payment_intents/{id}. - Confirm your webhook endpoint received
payment_intent.succeededand that your signature check passed. - Try the Exchange / transfer tab: send the exact amount of test USDC to the deposit address shown.
Things worth testing
- Retry the same create request with the same Idempotency-Key: you should get the same payment back.
- Let a payment expire, and cancel one, to see your handling of
expiredandcanceled. - Send a webhook test from the dashboard, and check that a tampered body is rejected by your verification code.
- Make your webhook endpoint return an error once and watch the retry arrive with a higher
ClearGateway-Delivery-Attempt.
Card payments
The card option in checkout is not live yet, so you cannot test it end to end.