Integration test
The testing process allows you to verify if the configurations made during your integration are working correctly, and if payments will be processed without errors, preventing potential failures when making the checkout available to end buyers.
To start this process, it is necessary to configure your testing environment by creating a seller test user. This will allow you to configure a test application, obtain its credentials, and apply them in your integration before making a test payment. Below are the steps to follow.
1. Create a seller test account
Test accounts are users who have the same functionalities as a real Mercado Pago user, but allow you to test the operation of your development without compromising real data.
Follow the steps below to create a seller test user.
- In Mercado Pago Developers, navigate to Your Integrations in the upper right corner of the screen, and click on the card corresponding to the application you are using for development.
- Having accessed "Application Details", go to the Test Accounts section in the left sidebar menu, and click the + Create test account button.
- On the "Create new account" screen, enter the description Seller to identify the account.
- Next, select the country of operation of the account, bearing in mind that this information cannot be edited later.
- Because it is a seller user, it is not necessary to indicate any value for the available money.
- Accept the Privacy Statement and the Terms and Conditions, and click Create test account.
2. Create a test application and obtain credentials
To finish establishing your test environment, you must create a test application with your seller test user, and thus access its credentials and link them to your integration.
Follow the instructions below to perform this process correctly.
- Open an incognito window, go to Mercado Pago Developers, and click the Sign in button located in the upper right corner.
- Log in as the seller test user created in the previous step. For this, use the username and password assigned to it. You can consult this data in the Test Accounts section.
- Still in the incognito window, within Your Integrations, click on Create application and follow the steps to create an application in order to have your test application linked to your seller user.
- Once the application is created, select it to access Application details. There, go to the Production credentials section in the left sidebar menu. You will find the Public Key and Access Token of the test user.
- In the necessary requests to test payments, replace the credentials used so far in the development stage with those of the seller test user.