Sandbox Environment
Test your integration thoroughly in our sandbox environment before going live. No real money, no risk. Our sandbox works exactly like production - same API, same behavior:Sandbox Features
No Real Money
Process test payments without financial risk
Test Cards & Accounts
Use pre-defined test cards and SPEI accounts
Full Feature Parity
All production features available in sandbox
Faster Processing
Instant processing for rapid testing
Test Cards
Use these cards to test different scenarios:Successful Payments
| Card Number | Brand | Behavior |
|---|---|---|
4000000000002503 | Visa | Successful payment |
5200000000002151 | Mastercard | Successful payment |
For 3D Secure (3DS) testing, see the complete 3DS testing guide which includes specific test cards and amount thresholds for different 3DS scenarios.
Failed Payments
| Card Number | Brand | Result |
|---|---|---|
4000000000000002 | Visa | Card declined |
4000000000000069 | Visa | Expired card |
4000000000000127 | Visa | Invalid CVC |
4000000000000119 | Visa | Processing error |
Test Card Details
For all test cards:- Expiry Date: Any future date (e.g., 12/2025)
- CVC: Any 3 digits (e.g., 123)
- Billing Address: Any valid address
Test 3D Secure
Test the complete 3DS authentication flow using specific test cards and amount thresholds.Trigger 3DS Challenge
Use amounts >= 100,000 cents (1,000 MXN) with the 3DS test card:3DS Test Cards:
4000000000002503with amount >= 100,000 cents triggers full 3DS challenge4000000000002701with amount >= 100,000 cents triggers frictionless 3DS4000000000002701with amount < 100,000 cents skips 3DS entirely
Complete Authentication
When prompted for a verification code in sandbox, use:Complete 3DS Guide
Learn how to implement 3D Secure authentication
Test Refunds
Refunds process instantly in sandbox (instead of 5-10 days in production):Common Test Scenarios
Scenario 1: Successful Card Payment
COMPLETED, payment successful.
Scenario 2: Declined Payment
Use declined card4000000000000002:
FAILED, error code DECLINED.
Scenario 3: 3DS Authentication Flow
- Create payment with 3DS card
- Receive
PAYER_AUTHENTICATION_CHALLENGE_REQUIREDstatus - Display authentication challenge
- Customer enters code
123456 - Validate authentication
- Payment completes
Scenario 4: Save & Reuse Card
Scenario 5: Idempotency Test
Send the same request twice with sameexternalId:
Integration Testing Checklist
Test these scenarios before going live:Card Payment Processing
Card Payment Processing
- ✅ Successful payment with Visa
- ✅ Successful payment with Mastercard
- ✅ Successful payment with Amex
- ✅ Declined payment handling
- ✅ Expired card error
- ✅ Invalid CVC error
3D Secure Authentication
3D Secure Authentication
- ✅ Trigger 3DS challenge
- ✅ Display authentication iframe
- ✅ Handle successful authentication
- ✅ Handle failed authentication
- ✅ Handle authentication timeout
Saved Payment Methods
Saved Payment Methods
- ✅ Save card during payment
- ✅ Charge saved card
- ✅ Handle expired saved card
- ✅ Update saved card
Refunds
Refunds
- ✅ Full refund
- ✅ Partial refund
- ✅ Multiple partial refunds
- ✅ Handle refund errors
Error Handling
Error Handling
- ✅ Network errors
- ✅ Validation errors
- ✅ Declined payments
- ✅ Rate limiting
- ✅ Retry logic
Performance Testing
Test your integration under load:Go Live Checklist
Ready to switch to production?1
Get Production Credentials
Contact [email protected] for live API keys.
2
Update Base URL
Change from sandbox.cheqpay.com to api.cheqpay.com.
3
Register Production Webhooks
Provide your production webhook URL to support.
4
Secure Your Keys
Use environment variables, never hardcode keys.
5
Set Up Monitoring
Track payments, errors, and webhook delivery.
6
Test in Production
Process a small test transaction to verify everything works.
Going Live Guide
Complete production readiness checklist