Integration test - Integration stages - Mercado Pago Developers

Integration test

Before going to production, we recommend testing your integration functionality and payment processing. This will allow you to verify if the integration was done correctly and if payments are being processed 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 the endpoint Create storeAPI 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, configure your test environment by creating a buyer test user. This way, you can simulate purchases using a Mercado Pago test account, which has fictitious balance. Check the step-by-step below to perform this configuration:

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 creating the buyer test account, you can perform the test purchase.