Testing
Use the sandbox Payment Gateway environment before going to production.Testing environment
Base URL:client_id and client_secret.
Test flow checklist
POST /api/public/security/auth— obtain tokenPOST /pay/api/start-paymentorgenerate-payment-link- Open checkout URL in browser
- Pay with a test card
GET /pay/api/payment/{checkoutSessionId}— verifystate
Test cards
Use the test card numbers provided by your Vpay account manager for your sandbox terminal:| Scenario | Card number |
|---|---|
| Successful payment | 4242424242424242 |
| 3DS challenge | 4000000000003220 |
Swagger
Interactive API exploration is available at https://vpay.didi.cr/swagger.Tips
- Use unique
transactionReferenceNumbervalues per test run to avoidVPAY_001. - Send
X-idoperacionwith a UUID per test for easier log correlation. - Do not use production credentials in sandbox or vice versa.

