The When Then test payment processor is a mock payment processor to simulate payments to test your integration in the sandbox environment. It helps to confirm your integration without moving money using test values and test cards. You might find it useful for your first payment routing recipe.
Test cards let you simulate different scenarios:
For successful payments use the test cards from the following list
Brand | Number | CVC | Date |
---|---|---|---|
Visa | 4242424242424242 | Any 3 digits | Any future date |
Mastercard | 5555555555554444 | Any 3 digits | Any future date |
Visa | 4012888888881881 | Any 3 digits | Any future date |
Visa | 4111111111111111 | Any 3 digits | Any future date |
To simulate declined payments use the test cards from below. This can be useful for testing your integration's error handling. Using one of these cards results in a declined payments with the related decline code.
Description | Number | Declined Code |
---|---|---|
General Decline | 4000000000000002 | GENERAL_DECLINE |
Expired Card | 4000000000000069 | EXPIRED_CARD |
Insufficient Funds | 4000000000009995 | INSUFFICIENT_FUNDS |
Insufficient Funds | 4000000000009979 | LOST_RESTRICTED_OR_STOLEN_CARD |
Fraud | 4100000000000019 | SUSPECTED_FRAUD |
Use the following card to simulate a 3DS payment response.
Description | Number |
---|---|
General Decline | 4000002760003184 |
Failed payments can be simulated using the following cards.
Brand | Number |
---|---|
Visa | 4000000000000119 |