Simulator
The Simulator is a feature available in our Sandbox environment. It lets you trigger specific payment and refund outcomes, such as captures, declines and failures, so you can test how your integration handles each scenario without relying on a real provider's test environment.
You can choose the outcome of a payment in two ways:
- On the simulator page: choose the outcome yourself on the Simulator's 3DS challenge, bank or wallet page
- By amount: send a specific
amountin your request to receive a set outcome straight away
Payments and refunds made through the Simulator follow the same flow as any other Sandbox payment. You make your requests to our Gateway API as normal and will receive the same responses, webhooks and statuses you would expect in Production.
To use the Simulator, a member of our team will need to set up a Simulator route on your Sandbox account. Please reach out to our team through your usual communication channels and we will let you know once your route is ready.
Choosing an outcome on the simulator page
If sending "force_3ds_challenge": true the 3DS challenge, bank and wallet pages each include a Sandbox outcome panel which allows you to choose:
- Payment: approve the payment, or decline it with any decline or failure code
- Refunds: how later refunds on this payment will behave. They can complete, stay pending or be declined with a refund decline code
You can also select Cancel payment to simulate the customer cancelling. This will decline the payment with decline code 00Q7 on the 3DS challenge page, and 0017 on the bank and wallet pages.
If the 3DS challenge page is left unanswered for 5 minutes, the payment will be declined with decline code 00Q5.
For Multibanco and MB WAY payments, you can also choose to leave the payment pending, to simulate a customer who has not yet completed the payment.

Choosing an outcome by amount
You can trigger a specific outcome by sending one of the amounts below. Amounts are in minor units, for example an amount of 100051 is €1,000.51.
| Amount | Outcome |
|---|---|
100000 | The payment is approved straight away, with no 3DS or page |
100001 to 109999 | The payment is declined or failed straight away. The last four digits are the decline code, for example 100051 gives 0051 |
200000 to 299999 | The payment is declined or failed straight away with a decline code that contains a letter (see below) |
| Any other amount | The payment follows the normal flow (see Payments) |
Declines and failures
The Simulator can return any of the codes listed on our Decline codes and reasons page. Codes that are a failure, such as 9030, will result in a failed payment rather than a declined payment.
If you send an amount within the ranges above that does not match a code the Simulator can return, the payment will be declined with decline code 0999.
Codes that are generated by our own platform, such as risk and routing declines, cannot yet be triggered through the Simulator.
Decline codes with a letter
For decline codes that contain a letter, such as 00Q2, the letter is written as its position in the alphabet (A is 01, Q is 17, R is 18) and added to 200000.
| Decline code | Calculation | Amount |
|---|---|---|
00Q2 | 0 0 17 2 | 200172 |
00Q5 | 0 0 17 5 | 200175 |
00Q7 | 0 0 17 7 | 200177 |
Payments
If the amount does not trigger one of the outcomes above, the payment will follow the normal flow for its payment method.
| Payment method | Flow |
|---|---|
| Card | A frictionless 3DS authentication and the payment is approved |
Card with force_3ds_challenge set to true | The customer is redirected to a 3DS challenge page, where you can choose the outcome |
| Merchant-initiated transactions (MIT) | The payment is approved straight away |
| Apple Pay and Google Pay | The customer is redirected to a wallet page, where you can choose the outcome |
| Other APMs | The customer is redirected to a bank page, where you can choose the outcome |
After an outcome is chosen on any page, the customer is redirected to the urls.authorize.success or urls.authorize.failure provided in your payment request, depending on the outcome.
Refunds
Refunds use the same amount ranges as payments. The outcome of a refund depends on its amount:
| Refund amount | Outcome |
|---|---|
103000 | The refund fails with code 3000 |
200000 to 299999 | The refund is declined with the matching refund decline code, for example 218041 gives R041 |
| Any other amount within the ranges above | The refund fails with code R999 |
| Any other amount | The refund follows the Refunds outcome chosen on the simulator page for the payment, or completes successfully if no outcome was chosen |
As a refund cannot be greater than the payment amount, to test a refund decline you will first need to make a payment with an amount above both ranges, for example 300000.
Test cards
The Simulator accepts any Luhn-valid Visa or Mastercard card number, along with any valid expiry date and CVV.
| Card brand | Example PAN |
|---|---|
| Visa | 4242424242424242 |
| Mastercard | 5123450000000008 |
Do not use real card data when testing in our sandbox environment