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 NumberBrandResult
4111 1111 1111 1111VisaSuccessful charge
5200 8282 8282 8210MastercardSuccessful charge
3782 822463 10005AmexSuccessful charge
4000 0000 0000 0002VisaDeclined — card_declined
4000 0000 0000 9995VisaDeclined — insufficient_funds

Expiration

12/2029

Any future date

CVC

123

Any 3 digits

Zip Code

10001

Any valid US zip

Test Bank Accounts

RoutingAccountResult
0210000219876543210Successful debit
0210000210000000001Failed 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