Skip to main content

Card Authorization Test Scenarios

In the sandbox environment, you can test different transaction scenarios to understand how the API responds in different situations. By default, all authorization attempts are configured to pass. To simulate other flows, use the following test cards or temporary tokens:

Test Cards​

Card NumberTest ScenarioResult Description
4389355432185991Authorization DeniedThis card simulates a scenario where authorization is denied. Use it to test how your application handles denied transactions.
4389355432185992Internal ErrorThis card causes an internal error on the server (Error 500). Use it to check how robust your application is in dealing with unexpected API failures.

Temporary Tokens for Testing​

Temporary TokenTest ScenarioResult Description
card_t/BIChj63GkO650jVX0xSsIeRD03GxDYAuthorization DeniedThis token simulates a scenario where authorization is denied. Use it to test how your application handles denied transactions.
card_t/CIChk54HlP760kWY1yTtJfSE14HyEZInternal ErrorThis token causes an internal error on the server (Error 500). Use it to check how robust your application is in dealing with unexpected API failures.

CardId for Testing​

CardIdTest ScenarioResult Description
45ece197-1936-4dd9-bc5e-eea93a0461e6Authorization DeniedThis cardId simulates a scenario where authorization is denied. Use it to test how your application handles denied transactions.
89ece197-1936-4dd9-bc5e-eea93a0461e6Internal ErrorThis cardId causes an internal error on the server (Error 500). Use it to check how robust your application is in dealing with unexpected API failures.

Simulation Scenarios​

By default, all valid requests to this endpoint are successful. To simulate error scenarios, use the following CVV values:

ScenarioDescriptionFieldValue
500 ErrorReturns a standard 500 error from our partner platformCVV500
400 ErrorReturns a standard 400 Bad Request error responseCVV400

Testing Tips​

  • Be sure to test all scenarios to ensure your application can handle different API responses.
  • Observe how your application handles errors and response messages provided by the API.

By using these cards or temporary tokens in your testing in the sandbox environment, you can prepare your application to handle a variety of situations that may occur in a production environment.