To test your integration with Pix you'll need to create an order with predefined values. This means that it will only be possible to verify the operation of your integration through a requisition, and not by simulating a purchase. For this, follow the steps below.
To perform these tests, send the following request to the /v1/ordersAPI endpoint, along with your test Access TokenPrivate key of the application created in Mercado Pago, that must be used in the backend. You can access it through Your integrations > Integration data > Tests > Test credentials. The test Access Token starts with the prefix `APP_USR`..
The value APRO for the payer.first_name field is what determines that this predefined request returns as a response a created order with the status action_required, as shown below. Afterwards, the payment status will automatically change to approved.
Finally, to verify if the test order was created correctly, send a GET request to the /v1/orders/{id}API endpoint, replacing id with the order identification, received in the response to its creation.
Ready! Once these steps are completed, the integration of Pix as a payment method is complete, and you can either continue testing other integrated payment methods, or go to production.