Wallet Test Scenarios
Wallet Test Scenariosβ
In the sandbox environment, you can test different transaction scenarios to understand how the API responds in various
situations. By default, all QR Code generation attempts are configured to be approved. To simulate other flows, use the
following buyer.firstName:
QR Code Generation Testβ
| buyer.firstName | Test Scenario | Result Description |
|---|---|---|
| Pessoa timeout | Timeout in QR Code generation | This expiration time is used to test scenarios where the API may return a timeout (502) during QR Code generation. |
Refund Test Scenariosβ
To test the refund scenario, you must first create a QR Code and store the id returned during the QR Code creation. Then, use the QR Code id in the refund request.
By default, if the amount passed in the refund is equal to the amount of the generated QR Code, the refund will be approved. If it is different, an error 400 will be returned.
Tips for Testing Scenariosβ
-
Make sure to test all scenarios to ensure your application can handle different API responses.
-
Observe how your application handles errors and the response messages provided by the API.