Testing - Mobile Checkout - Mercado Pago Developers
Developers
API Reference
Support
Sign in

    Home

    Getting started

    Online Payments

    Checkout Pro

    Checkout API

    Payment Link

    Marketplace

    Mobile Checkout

    Web Tokenize Checkout

    In person payments

    QR Code

    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 the integration

Before going into production, it is very important to test the payments flow, checking whether the configurations you made at the preference level are effectively reflected in the checkout.

You should check if:

  • The information about the product or service to be paid is correct.
  • If you recognize the customer’s account to send the email.
  • It offers the payment methods you wish.
  • The payment experience is adequate and the payment result is reported.

How to test my integration

Test users allow you to test your integration 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.

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":"MLC"}'

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.
  • To test the integration, follow the steps below:

    1. Configure the Public Key in your application.
    2. Create the preference on your server with the Access Token.
    3. Complete the form, entering the digits of a test card. On the expiration date you must enter any date after the current date and a 3-or 4-digit security code, depending on the card.
    4. 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.

    Test Cards

    Use these test cards to test the different payment results.

    CardNumberCVVExpiration Date
    Mastercard5416 7526 0258 258012311/25
    Visa4168 8188 4444 711512311/25
    American Express3757 781744 61804123411/25

    You can also use test credit cards from local payment methods in each country.

    Was this information helpful?

    © 2021 MercadoLibre S.R.L.

    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.