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 Number | Test Scenario | Result Description |
|---|
| 4389355432185991 | Authorization Denied | This card simulates a scenario where authorization is denied. Use it to test how your application handles denied transactions. |
| 4389355432185992 | Internal Error | This 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 Token | Test Scenario | Result Description |
|---|
| card_t/BIChj63GkO650jVX0xSsIeRD03GxDY | Authorization Denied | This token simulates a scenario where authorization is denied. Use it to test how your application handles denied transactions. |
| card_t/CIChk54HlP760kWY1yTtJfSE14HyEZ | Internal Error | This 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β
| CardId | Test Scenario | Result Description |
|---|
| 45ece197-1936-4dd9-bc5e-eea93a0461e6 | Authorization Denied | This cardId simulates a scenario where authorization is denied. Use it to test how your application handles denied transactions. |
| 89ece197-1936-4dd9-bc5e-eea93a0461e6 | Internal Error | This 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:
| Scenario | Description | Field | Value |
|---|
| 500 Error | Returns a standard 500 error from our partner platform | CVV | 500 |
| 400 Error | Returns a standard 400 Bad Request error response | CVV | 400 |
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.