Skip to main content

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.firstNameTest ScenarioResult Description
Pessoa timeoutTimeout in QR Code generationThis 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.