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.
- In Devsite, access the menu Your Integrations > Test Accounts and click on the Create Test Account button.
- On the "Create New Account" screen, enter a description for the account identification. Example: "Salesperson - store 1".
- 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.
- 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.
- Click Create Test Account.
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.
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.
|Card||Number||Security code||Expiration date|
|Mastercard||5416 7526 0258 2580||123||11/25|
|Visa||4168 8188 4444 7115||123||11/25|
|American Express||3757 781744 61804||1234||11/25|
To test different payment results, fill in the desired status in the cardholder's name:
|Payment Status||Description||Identity document|
|Approved payment||(otro) 123456789|
|Declined for general error||(otro) 123456789|
|Declined with validation to authorize||-|
|Declined for insufficient amount||-|
|Declined for invalid security code||-|
|Declined due to due date issue||-|
|Declined due to form error||-|
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!