Account Configuration for Transaction Restrictions
To ensure security and data integrity, you can configure account settings to restrict specific transaction types, such as invalid third-party payments. It is also important to test scenarios involving incorrect or incomplete data, including:- Invalid CPF or CNPJ values
- Incomplete tax numbers
- Malformed strings or invalid values
- Enforce Data Validation
Implement validation rules to prevent and properly handle invalid input. - Simulate Invalid Scenarios
Create test cases using incomplete or malformed data to observe how the system behaves.
Configuring the Account
To test failure scenarios, start by configuring your account settings. First, list your virtual accounts and click the Actions button to open the virtual account details. This account will be used to generate the QR Code for the payment..png?fit=max&auto=format&n=xz71XpWMTdfzGqWm&q=85&s=c19e18d8bf1abeac1566dbf0bb270393)
By enabling or disabling these rules, you can simulate different failure scenarios during testing.
NoteWhen an invalid payment is attempted, the following error message will appear in the banking application:
Most payment failures occur during the initial validation process, and the error is immediately returned to the payer’s banking application. In these cases, no transaction record is created on the Trio side, and no additional integration handling is required. This early rejection behavior applies to rules #1, #2, #5, #6, #8, #9, and #10.
Invalid Pix Key/Copy & Paste
This behavior is similar to what end users experience in production environments.
.png?fit=max&auto=format&n=5cvf6IfT-hgKrVWt&q=85&s=0da1c142a791e566c0f5419fbee9e7d2)

