Testing & Sandbox
Use the sandbox environment to test your integration without processing real payments. All sandbox API keys are prefixed with sk_test_.
Test Card Numbers
| Card Number | Brand | Result |
|---|---|---|
| 4111 1111 1111 1111 | Visa | Successful charge |
| 5200 8282 8282 8210 | Mastercard | Successful charge |
| 3782 822463 10005 | Amex | Successful charge |
| 4000 0000 0000 0002 | Visa | Declined — card_declined |
| 4000 0000 0000 9995 | Visa | Declined — insufficient_funds |
Expiration
12/2029Any future date
CVC
123Any 3 digits
Zip Code
10001Any valid US zip
Test Bank Accounts
| Routing | Account | Result |
|---|---|---|
| 021000021 | 9876543210 | Successful debit |
| 021000021 | 0000000001 | Failed debit |
Going Live Checklist
1
All core flows tested in sandbox (charge, refund, customer creation, subscription lifecycle)
2
Webhook endpoint receiving and verifying events correctly
3
Error handling covers all HTTP status codes (400, 401, 402, 429, 500)
4
Idempotency keys implemented for charge and refund requests
5
API keys stored securely (environment variables, not in code)
6
Switch API keys from sk_test_ to sk_live_ and base URL to production