Route a Payment to the Sandbox
Passtest_transaction: true when you create a payment. Quidkey routes it to the sandbox provider instead of a live bank connection.
Body abbreviated. See the Redirect guide for the full required payload.
Identifying Test Events
Webhooks for sandbox payments carry test markers, so your handler can tell sandbox traffic apart from production. The event payload includes atest flag (and sandbox indicators) on the payment object:
Sandbox vs. Live
| Aspect | Sandbox (test_transaction: true) | Live |
|---|---|---|
| Bank movement | None: simulated by the sandbox provider | Real funds move |
| Webhook events | Same shapes, with test/sandbox markers | Production events |
| Credentials | Use a separate set of credentials / webhook secret if you have them | Production credentials |
If your account provides separate sandbox credentials and a separate webhook signing secret, use them for test traffic and keep them distinct from production. This keeps environments cleanly isolated.
A Typical Test Pass
Create a test payment
Create a payment request with
test_transaction: true and complete it through the sandbox flow.Confirm the webhook arrives
Verify your endpoint receives the event, the signature validates, and
data.object.test is true. See Webhooks.Exercise edge cases
Test failure and cancellation paths, and confirm your idempotency and error handling behave as expected.
Next Steps
Webhooks
Verify signatures and handle test events
Accept a Payment (Redirect)
Create your first test payment
Amounts & Currencies
Send amounts correctly in tests
Errors
Test your error handling paths