Tests - Checkout Pro - Mercado Pago Developers
Developers
API Reference
Support
Sign in

    Home

    Getting started

    Online Payments

    Checkout Pro

    Checkout API

    Payment Link

    Subscriptions

    Marketplace

    Mobile Checkout

    Web Tokenize Checkout

    In person payments

    QR Code

    Mercado Pago Point

    Plugins and platforms

    WooCommerce

    Prestashop

    Magento 2

    Shopify

    Tiendanube

    VTEX

    SDKs

    Notifications

    Webhooks

    IPN

    Account Management

    Requirements for production environment

    Get payments

    Reports

    Cashback and Cancellations

    Chargeback Management

    Improves approval

    Resources

    Localization

    Changelog

    Status

IN THIS PAGE

Suggest edit
Help us improve the documentation
Did you see wrong information and would you like us to explain something else or improve our manuals? Please leave your suggestions on GitHub.

Test your integration

How to test my integration

Test users allow you to test your Checkout Pro by generating payment flows in an exact copy of your integration.

User typesDescription
SellerIt is the test account you use to configure the application and credentials for collection.
BuyerIt is the test account you use to test the purchase process.
There are two ways to make the payment:

As a guest user: you only need to complete the email address.
As a registered user: you access the Mercado Pago account with the username and password. In case money is available in the account or there are saved cards, they will be enabled as payment methods.

How to create users

To perform the tests it is necessary that you have at least two users: a buyer and a seller.

Execute the following curl to generate a test user:

Request

curl

curl -X POST \
-H "Content-Type: application/json" \
-H 'Authorization: Bearer PROD_ACCESS_TOKEN' \
"https://api.mercadopago.com/users/test_user" \
-d '{"site_id":"MLM"}'

Response

json

{
    "id": 123456,
    "nickname": "TT123456",
    "password": "qatest123456",
    "site_status": "active",
    "email": "test_user_123456@testuser.com"
}
Important
  • You can generate up to 10 test user accounts simultaneously. Therefore, we recommend you save each email and password.
  • Test users expire after 60 days without activity in Mercado Pago.
  • To make test payments we recommend using low amounts.
  • Both buyer and seller must be test users.
  • Use test cards, since it is not possible to withdraw money.
  • Test the payment flow

    1. Configure the checkout with the information of your selling user

    Generate a preference with the credentials of the test user that you want to use as a seller.

    2. Make a payment with your buyer user

    Purchase as a guest user

    Credit card tests

    When opening the checkout created with the data of your seller user:

    1. Select Card as the payment method.
    2. Enter the details of a test card.
    3. Complete the email and done!

    Buy as a registered user (with Mercado Pago account)

    Credit card tests

    When opening the checkout created with the data of your seller user:

    1. Log in to Mercado Pago with your buyer test user account.
    2. Select Card as the payment method.
    3. Choose a saved card or complete the details with a new one and done!

    Test Cards

    CardNumberCVVExpiration Date
    Mastercard5474 9254 3267 036612311/25
    Visa4075 5957 1648 376412311/25

    To test different payment results, complete the information you want in the name of the cardholder:

    • APRO: Payment approved.
    • CONT: Payment pending.
    • OTHE: Rejected by general error.
    • CALL: Rejected with validation to authorize.
    • FUND: Rejected for insufficient amount.
    • SECU: Rejected by invalid security code.
    • EXPI: Rejected due to problem with expiration date.
    • FORM: Rejected by error in the form.

    Start receiving payments

    To start charging, you must activate your credentials.

    To activate them, verify that the credentials in your integration are those of the account that receives the money from the sales.


    Next steps

    RECOMMENDED

    Advanced integration

    Optimize your integration and improve the management of your sales.

    Customization

    Adapt the style of your brand in the buying experience.

    Was this information helpful?

    Copyright © 2021 MercadoLibre S. de R.L. de C.V.

    Terms and conditionsHow we take care of your privacy
    Partners Mercado Pago

    Al navegar en este sitio aceptas las cookies que utilizamos para mejorar tu experiencia. Más información.