Sandbox. Test keys, Arc testnet and test USDC. No real money moves here.

Guides

Testing

The sandbox runs the same code as live on Arc testnet. Test every path below with a sk_test_ key before you go live.

Set up

  1. Sign in to the sandbox console and create a test key.
  2. Point your server at https://sandbox.api.saphra.one/v1.
  3. Fund a test wallet from the Circle faucet (Arc Testnet, USDC or EURC).
  4. For local development, http://localhost redirect URLs are accepted with test keys.

Scenarios to run

ScenarioHowExpect
Happy pathPay the full amount with a wallet.complete / paid, redirect to success_url with the id filled in.
SaphraONE accountChoose “Pay with my SaphraONE account”, sign in, send.Return link back to the checkout, then complete.
Partial paymentSend less than the amount.open / partially_paid; pay the rest to complete.
OverpaymentSend more than the amount.complete with overpayment above 0.
AbandonedCreate a session and don’t pay.expired after expires_in_minutes (min 30).
Expire from serverPOST /checkout/sessions/{id}/expire.expired; paying is no longer possible.
Retry safetyRepeat a create with the same Idempotency-Key.Same session id both times.
Closed tabPay, then close the tab before the redirect.Your reconcile job finds it complete.
Bad inputSend amount as a number, or line items that don’t add up.400 parameter_invalid with param.
Wrong keyUse the test key against the live API.401 api_key_wrong_mode.