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

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"}

Testing Cards

Use the following cards to test the integration

CardNumberSecurity codeDate of expiration
Mastercard5254 1336 7440 356412311/25
Visa4013 5406 8274 626012311/25
American Express3743 781877 55283123411/25

To test different payment results, complete the following date in the name of the owner of the card:

  • APRO: Payment approved
  • CONT: Payment pending
  • OTHE: Rejected - general error
  • CALL: Rejected - validating authorization
  • FUND: Rejected - Insufficient funds
  • SECU: Rejected - Security code invalid
  • EXPI: Rejected - wrong date of expiration = FORM: Rejected - wrong information.

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


Reference: https://www.mercadopago.com.ar/developers/es/guides/online-payments/checkout-api/testing/#bookmark_prueba_el_flujo_de_pago


X

Graph View