We provide a payment simulators for card, PayPal, and SPEI payments, allowing you to test card payments, redirect payments, and push payments respectively.

These simulators do not connect to any PSP and instead provide mocked responses based on the amounts or other values passed in.

Setup

To set up a simulator, head over to your sandbox dashboard and go to the connections catalog. Once there, each simulator will be available to set up with a custom merchant ID. This ID does not serve any purpose.

Please note that simulators are not available in production environments.

Test values

Payments

When creating a payment, the following test values can be used to simulate various error codes.

Simulator amounterror_code
200001canceled_payment_method
200002disputed_transaction
200003duplicate_transaction
200004expired_authorization
200005expired_payment_method
200006incorrect_billing_address
200007incorrect_country
200008incorrect_currency
200009incorrect_cvv
200010incorrect_expiry_date
200011insufficient_funds
200012issuer_decline
200013other_decline
200014requires_buyer_authentication
200015refused_transaction
200016service_decline
200017suspected_fraud
200018unavailable_payment_method
200019unknown_payment_method
200020unsupported_transaction
200021unsupported_payment_method
200022cancelled_buyer_approval
300001insufficient_service_permissions
300002invalid_amount
300003invalid_payment_method
300004invalid_service_configuration
300005invalid_service_credentials
300006invalid_service_response
300007invalid_tax_identifier
300008missing_billing_address
300009missing_cvv
300010missing_shipping_address
300011missing_tax_identifier
300012refund_period_expired
300013service_error
300014service_network_error
300015service_rate_limit
400001internal_error
400002invalid_billing_address
400003invalid_operation
400004invalid_request_parameters
400005invalid_service_request
400006invalid_shipping_address
400007service_resource_conflict
400008unexpected_state
400009unknown_error
400010unknown_service_resource
400011unsupported_country
400012unsupported_currency
400013unrecognised_country
400014unrecognised_currency
400015unrecognised_payment_method
400016unrecognised_scheme
400017unsupported_scheme

Captures

When capturing an authorized payment, the following responses can be simulated.

When creating a payment, the following test values can be used to simulate various error codes.

Simulator amountstatus
10authorization_succeeded
20capture_pending
30authorization_succeeded
40authorization_succeeded

Our API does not currently return error codes for failed captures in the API, but the values 10, 30, and 40 will provide different error codes in a future release.

Transactions in a capture_pending state can be moved to the next state using webhooks.

Refunds

When refunding a card payment, the following responses can be simulated.

When creating a payment, the following test values can be used to simulate various error codes.

Simulator amountstatus
1declined
2processing
3failed
4failed

Our API does not currently return error codes for failed refunds in the API, but values 3, and 4 will provide different error codes in a future release.