Skip to main content

How to test Mercadopago

In order to test mercadopago integration. You must create a pair of testing users:

UserDescription
SellerIs the user account you use to configure the application and get the credentials to integrate it with our platform
BuyerIs the user account used to purchase a product from our platform
IntegratorIs the user account used in marketplace-model integrations

How to create users​

To create both users you may need to run the following code:

curl -X POST \
-H "Content-Type: application/json" \
"https://api.mercadopago.com/users/test_user?access_token=APP_USR-6774870739499857-080721-2d1e66d86521a030cbfbae152065cd89-614950168" \
-d '{"site_id":"MLA"}'

Please be aware that you must create a pair of users per country where you want to test the platform.

{"site_id":"MLA"} - Argentina {"site_id":"MLX"} - Mexico {"site_id":"MCO"} - Colombia

Response:

{
"id": 610757975,
"nickname": "TETE8906345",
"password": "qatest393",
"site_status": "active",
"email": "test_user_32892706@testuser.com"
}

Alternatively, test accounts can be created from the Developer Dashboard at Tus integraciones > Tu aplicación > Cuentas de prueba > Crear cuenta de prueba, selecting the country, a description, the account type (Vendedor, Comprador, or Integrador), and optionally a fictional money amount. Up to 15 test accounts can exist at the same time and they cannot be deleted.

Testing Cards​

Use the following cards to test the integration:

Card typeBrandNumberSecurity codeDate of expiration
CreditMastercard5031 7557 3453 060412311/30
CreditVisa4509 9535 6623 370412311/30
CreditAmerican Express3711 803032 57522123411/30
DebitMastercard5287 3383 1025 330412311/30
DebitVisa4002 7686 9439 561912311/30

To test different payment results, complete the following values in the cardholder fields. The document (DNI 12345678) is only required for APRO and OTHE.

Payment statusCardholder nameDocument
ApprovedAPRO(DNI) 12345678
Rejected - general errorOTHE(DNI) 12345678
Pending paymentCONT-
Rejected - pending authorization validationCALL-
Rejected - insufficient fundsFUND-
Rejected - invalid security codeSECU-
Rejected - wrong expiration dateEXPI-
Rejected - form errorFORM-
Rejected - missing card_numberCARD-
Rejected - invalid installmentsINST-
Rejected - duplicated paymentDUPL-
Rejected - disabled cardLOCK-
Rejected - card type not allowedCTNA-
Rejected - exceeded card PIN attemptsATTE-
Rejected - on blacklistBLAC-
UnsupportedUNSU-
Used to apply an amount ruleTEST-

Test Users​

note

At the moment, the system in staging is already configured with testing credentials for Argentina

Argentina (site_id: MLA)​

Seller:

FieldValue
ID636557095
UsernameTESTOEIGSTQU
Passwordqatest8758
Emailtest_user_61030718@testuser.com
CLIENT ID5880318318333178
CLIENT SECRETaHYtHV9EoozyzlMl37Cb8aVvd4fC7V8I

Buyers:

IDUsernamePassword
636557169TETE5973404qatest7444
2366438745TESTUSER496137151It7xbMiYbL
2366423305TESTUSER12585964251PbzCcHAyH

Colombia (site_id: MCO)​

Buyers:

IDUsernamePassword
1989106694TESTUSER897203409VxGZexI1Xt
1989109354TESTUSER1986897602TSOBefeUnA

Uruguay (site_id: MLU)​

Buyers:

IDUsernamePassword
1985412949TESTUSER1425569611Dp5xGEX0Hi
1985412885TESTUSER1988248094LIF4oSikit

Validate login with test users​

When logging into a website with test users and trying to access some sections of the Developer Dashboard, you may be required to authenticate with a code sent via email.

Since these are fictional users, you will not have access to the account that will receive the code. Instead, you can perform this authentication by entering the last 6 digits that make up the User ID of the test account you are trying to access, or the last 6 digits that make up the production Access Token.

Example

For a test user with ID 636557095, the verification code would be: 557095

For accounts created from the Developer Dashboard, the verification code is also available as a 6-digit code under Tus integraciones > Tu aplicación > Cuentas de prueba.


References:

X

Graph View