Emulating status via Webhook

Emulating status via Webhook

Emulating a transaction status via Webhook is useful for testing integration with other systems and ensuring that your application is working correctly. With this information, you can have better control over your transactions and quickly identify any potential issues.

This dashboard provides an overview of the links generated by users or by yourself. There are four cards showing the current status of initiated transactions.

The first card shows the Total Received (x), which is the gross value of all transactions with the "success" status (PAID). In parentheses, the quantity in units is highlighted.

The second card informs about the Generated Transactions, which is the quantity in units of initiated transactions, including those awaiting payment, paid, refunded, among others.

The third card displays the Chargeback (x), which is the gross value of all transactions with the "refunded" status (CHARGEBACK). In parentheses, the quantity in units is highlighted.

The fourth card informs about the Failed Transactions (x), which is the gross value of all transactions with the "failed" status (FAILED). In parentheses, the quantity in units is highlighted.

In addition, in the table below, you can view the generated links and simplified details of each link. To see the full details, simply click on the Transaction ID of the link you want to see.

This dashboard is useful for monitoring transaction performance, managing links, and identifying potential issues to take necessary corrective actions.

Detailed View

When you click on the Transaction ID of the transaction you wish to inspect, you will have access to all the complete details of the link and its current status. In the example below, we are viewing a payment link that was initiated and paid by the user, meaning the transaction status is "success".

NOTE: It is only possible to emulate transactions whose status is pending_payment.

Emulation Page

To test and simulate transactions, you can access the link available in the Developers section, where it is possible to simulate all possible states of a transaction.

An option to emulate the status of credit card payments is to use sandbox credit card numbers. It is important to note that, in the case of Pix, there are only two possible statuses: expired and succeeded.

It is important to remember that these credit card numbers are for testing purposes only and do not represent real transactions. Additionally, it is crucial that the emulation is only performed during the development phase of the application and that, once it is ready to be launched, the production webhook is configured to ensure that all transactions are processed securely and efficiently.

Video tutorial

Sandbox Credit Cards

7777 7777 7777 7777

Emulates the status: expired

3333 3333 3333 3333

Emulates the status: refunded

4444 4444 4444 4444

Emulates the status: failed

Any other number returns the succeeded status

Last updated