Home
Documentation
Resources
Partners
Community

Resources

Check for updates on our solutions and system performance, or request technical support.

Partners

Discover our program for agencies or developers that offer integration services and sellers who want to hire them.

Community

Get the latest news, ask others for help and share your knowledge.

Integration test - Stages of integration - Mercado Pago Developers

Integration test

The testing process allows you to verify whether the configurations made during your integration work correctly, and whether payments will be processed without errors, avoiding potential failures when making the checkout available to end buyers.

To start this process, it is necessary to set up your testing environment by creating test users for the seller and the buyer. This will allow you to configure a test application, obtain the required credentials, and apply them in your integration. After this, you can perform a test payment using a buyer's test account.

Below are the steps to follow:

1. Create test seller 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.

  1. 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.
  2. Having accessed "Application Details", go to the Test Accounts section in the left sidebar menu, and click the + Create test account button.

access test user

  1. On the "Create new account" screen, enter the description Seller to identify the account.
  2. Next, select the country of operation of the account, bearing in mind that this information cannot be edited later.
  3. Because it is a seller user, it is not necessary to indicate any value for the available money.
  4. Accept the Privacy Statement and the Terms and Conditions, and click Create test account.

create test user

2. Create test buyer account

To test your integration, you need to perform a test purchase using a test buyer account, simulating the action of a real buyer. Follow the steps below to create a test buyer account.

  1. In Mercado Pago Developers, navigate to Your integrations at the top right of the screen and click on the card corresponding to the application you are developing.

  2. After accessing "Application Details," go to the Test Accounts section in the left sidebar and click the + Create Test Account button.

  3. In the "Create New Account" screen, enter the description Buyer to identify the account.

  4. Next, select the operating country of the account, keeping in mind that this information cannot be edited later.

  5. Optionally, specify a value for the available money that is greater than the two products on your site.

  6. Accept the Privacy Statement and the Terms and Conditions, and click on Create Test Account.

testuser

3. Create Test Application and Obtain Credentials

Follow the instructions below to perform this process correctly.

  1. Open an incognito window, go to Mercado Pago Developers, and click the Sign in button located in the upper right corner.
  2. 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.

access test user information

  1. Still in the incognito window, within Your Integrations, click on Create application and follow the steps to create an applicationEntity registered in Mercado Pago that acts as an identifier for managing your integrations. Refer to the Create Application step if you need to learn how to do it. in order to have your test application linked to your seller user.
  2. 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 userPublic and private keys of the testing application created with your test user..
  3. In the necessary requests to test payments, replace the credentials used so far in the development stage with those of the seller test user.