Skip to main content

3D-Secure

All cards here will succeed all operations after performing 3DS with the exception of cards failing 3DS verification.

Visa

Mastercard

Declined payments

Simulate response codes

A specific response from Visa or Mastercard can be simulated in test mode by setting the transaction amount to 995XX in major units, where XX is the two-digit response code. Minor units are currently ignored. For example, an amount of 99501.00 will result in a response code of 01, see the table below. If the resulting response code indicates success for the given card brand, the transaction will succeed, otherwise it will fail. For failed transactions a list of error codes and a retry policy will be returned. The error codes will generally only contain one entry, but if a new error code is introduced you might receive both the old and new codes. The retry policy will contain an array of retry codes in the same manner as the error codes. If the retry policy indicates that you should retry after a delay, we will also include an ISO 8601 timestamp after which you can retry the operation.

Visa amounts

Mastercard amounts

Note: The retry policy shown here reflects the simulator’s behavior, which always falls back to the default retry policy. In production, Mastercard’s retry policy is derived from the merchant advice code (MAC) returned by the issuer in the network response, and may therefore differ from the values below (e.g. DO_NOT_RETRY, or RETRY_AFTER_DELAY with a different delay such as 1 hour, 2/4/6/8/10 days).

Error codes and retry policy

Error codes

Retry codes

Last modified on June 29, 2026