Integration test - Attended model - Mercado Pago Developers

Test your integration

Create test users

Use test accounts to ensure that your integration supports all possible flows and scenarios. They have the same features as a real Mercado Pago account, which allows you to test the functioning of the integrations you are developing.

To perform the test, you must have at least two accounts:

  • Seller: account required to configure application and credentials. This is your user account.
  • Buyer: account required to test the purchase process.

In addition to these accounts, it is also important to use test cards to test payment integration and simulate the purchase process, as well as balance in the test user's Mercado Pago account. See more details below.

To create accounts and test how the integrations work, follow the steps below.

  1. In Devsite, access the menu Your Integrations > Test Accounts and click on the Create Test Account button.
  2. On the "Create New Account" screen, enter a description for the account identification. Example: "Salesperson - store 1".
  3. Next, select the country of operation for the account. This information cannot be edited later and, in addition, Buyer and Seller users must be from the same country.
  4. Fill in a fictitious amount of money that will serve as a reference for you to test your applications. This amount will appear as a balance in the test user's Mercado Pago account and can be used to simulate payments, as well as with a test card.
  5. Click Create Test Account.
Attention
You can generate up to 15 test user accounts at the same time and it is not yet possible to delete them at the moment.

Ready! The test account has been created and will be displayed in the table with the following information:

  • Country location of origin of the account selected in your registration.
  • Account ID: description for test account identification.
  • User: auto-generated test account username. This username is used to log in with the test user.
  • Password: automatically generated test user account access password. To generate a new password, click on the 3 vertical dots at the end of the table row and select the option Generate new password.
  • Creation Date: date the test account was created.
Important
To edit the account ID or add more play money to test your applications, click on the 3 vertical dots at the end of the table row and select the option Edit data.

Test cards

You can use test cards of local payment methods and simulate different payment responses, without the need to use a real card.

For this, depending on your country, use one of the cards provided below.

CardNumberSecurity codeExpiration date
Mastercard5031 7557 3453 060412311/25
Visa4509 9535 6623 370412311/25
American Express3711 803032 57522123411/25

To test different payment results, fill in the desired status in the cardholder's name:

Payment StatusDescriptionIdentity document
APROApproved paymentDNI of the test user
OTHEDeclined for general errorDNI of the test user
CONTPending payment-
CALLDeclined with validation to authorize-
FUNDDeclined for insufficient amount-
SECUDeclined for invalid security code-
EXPIDeclined due to due date issue-
FORMDeclined due to form error-
Important
The DNI associated with the card must be the same as the test user making the purchase. To confirm this information, go to your Mercado Pago user account, access Your profile > Your information and review the Document field, ensuring that it will be the same to be associated with the card.

Test payment process

1. Assign an order to a checkout using your seller user.

To test the attended model, generate an order with the test user credentials you want to use as a seller and send an order to the previously created QR.

2. Make a payment with your buyer user.

  • A. Sign Mercado Pago App in with your buyer test user.
  • B. Click on Pay with QR and scan the POS QR code.
  • C. Choose a saved card or enter data of a new one, and pay.

3. Receive order notifications

Lastly, make sure you’ve received a status notification in your system. And it's done!