It's a simple way to test your Hosted Payment API, since it simulates the scenarios that usually happen in a transaction.
Requirements and Preparation:
To start, you need to have the route already structured with the necessary fields. If you have not completed these steps, you can visit the Hosted Payment API section, where we show you how to structure the necessary fields for queries.
Keep in mind that you can use this integration in any code language that supports http/s queries or implement a library capable of using a request of type Request or Response.
Key ID: s4ndb0x
Route for sending parameters in SandBox environment:
Access the route with the parameters already structured.
Click on Paga Seguro
A screen opens showing the scenarios that can be simulated.
1. Simular pago exitoso (simulate successful payment)
2. Ejecutar callback (execute callback)
Shows a confirmation message that the information was successfully sent to the address of the Webhook established in the field: _callback
To see more details of the _callback field click here.
3. Simular pago fallido (Simulate failed payment)
4. Cancelar orden (cancel order)
Redirects to the URL assigned in the _cancel parameter