WhenThen Test Processor

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:

  • Successful payments by card brand.
  • Card errors for declines and failed payments.
  • Simulate refunds, cancellations and disputes.
  • 3D Secure simulation testing.

Successful Payments

For successful payments use the test cards from the following list

Visa4242424242424242 Any 3 digitsAny future date
Mastercard5555555555554444 Any 3 digitsAny future date
Visa4012888888881881 Any 3 digitsAny future date
Visa4111111111111111 Any 3 digitsAny future date

Declined Payments

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.

DescriptionNumberDeclined Code
General Decline4000000000000002 GENERAL_DECLINE
Expired Card4000000000000069 EXPIRED_CARD
Insufficient Funds4000000000009995 INSUFFICIENT_FUNDS
Insufficient Funds4000000000009979 LOST_RESTRICTED_OR_STOLEN_CARD
Fraud4100000000000019 SUSPECTED_FRAUD

3DS Payments

Use the following card to simulate a 3DS payment response.

General Decline4000002760003184

Failed Payments

Failed payments can be simulated using the following cards.