Integration test - Integration stages - Mercado Pago Developers
AI resources

Integration test

Before going to production, we recommend testing your integration functionality and transaction processing. This will allow you to verify if the integration was done correctly and if this processing happens without errors.

During integration development, use the test Access TokenPrivate key of the application created in Mercado Pago, used in the backend. You can access it in Your integrations > Application details > Tests > Test credentials. During the integration process, use the test Access Token. Upon completing the integration, replace it with the production Access Token if it is your own integration, or with the Access Token obtained via OAuth for third-party integrations.Access test credentials to simulate transactions. This way, you can verify your integration functionality without risk of affecting real data.

Before starting tests, make sure that webhook notifications are configured. This configuration is necessary to validate the correct functioning of notifications in each test scenario.

To begin, use the buyer test account automatically created with your application. This way, you can simulate purchases using a Mercado Pago test account, which has fictitious balance. Follow the steps below to get it:

Get a buyer test account

To test the integration, make a test purchase using the buyer test account that was automatically created with your application. To find it, follow the steps below.

  1. In Mercado Pago Developers, navigate to Your integrations in the upper right corner, and click on the card corresponding to the application you are developing with.
  2. After accessing the application details, go to the Test accounts section in the left sidebar menu.
  3. In the selector menu, click on Buyer. Once there, you will see the account's operating country, User ID, username and password of the test account.

testuser

After getting the buyer test account, you can perform the test purchase.