Home
Documentation
Resources
Partners
Community

Resources

Check for updates on our solutions and system performance, or request technical support.

Partners

Discover our program for agencies or developers that offer integration services and sellers who want to hire them.

Community

Get the latest news, ask others for help and share your knowledge.

Perform test purchases - Integration test - Mercado Pago Developers

Perform test purchases

After setting up your test environment, you can perform test purchases to validate your integration with Checkout Pro and ensure that the configured payment methods work correctly. Below, we will show you how to carry out different checks in your integration.

Test a purchase with card

To test a purchase with a credit or debit card, follow these steps:

  1. Access Mercado Pago Developers and log in as a test buyer user that you created previously. Use the username and password assigned to it. You can find these details in the documentation Integration Test > Create Test Buyer Account.
  2. Initialize the Checkout from the payment preference you created. You can find instructions on how to initialize it in the documentation Add the SDK to the Frontend and Initialize Checkout.
  3. Access the store where you integrated Checkout Pro, select a product or service, and at the payment instance, click on the Mercado Pago purchase button.
  4. Finally, perform a test purchase using the test card details shown below. Note that you can simulate different purchase outcomes using different cardholder names on the test cards.

Test cards

Mercado Pago provides test cards that will allow you to test payments without using a real card.

Their data, such as number, security code, and expiration date, can be combined with the data relating to the cardholder, which will allow you to test different payment scenarios. That is, you can use the information of any test card and test different payment results based on the cardholder's data.

Below, you can see the data of the test debit and credit cards. Select the one you want to use to test your integration.

Card typeFlagNumberSecurity codeExpiration date
Credit cardMastercard5474 9254 3267 036612311/30
Credit cardVisa4075 5957 1648 376412311/30
Debit cardMastercard5579 0534 6148 264712311/30
Debit cardVisa4189 1412 2126 763312311/30

Next, choose which payment scenario to test and fill in the cardholder's information (First name and last name, Document type and number) as indicated in the table below.

Cardholder’s first and last namePayment Status
APROApproved payment
OTHEDeclined for general error
CONTPending payment
CALLDeclined with validation to authorize
FUNDDeclined for insufficient amount
SECUDeclined for invalid security code
EXPIDeclined due to due date issue
FORMDeclined due to form error
CARDRejected for missing card_number
INSTRejected for invalid installments
DUPLRejected for duplicate payment
LOCKRejected for disabled card
CTNARejected for non-permitted card type
ATTERejected due to exceeded PIN attempts
BLACRejected for being on the blacklist
UNSUNot supported
TESTUsed to apply amount rules

Once you have completed all the fields correctly, click the button to process the payment, and wait for the result.

If the test is successful, you will see the test purchase success screen.

If you have configured notifications, verify that you are receiving the notifications corresponding to the test transaction.

Test a purchase with an offline payment method

You can verify if your integration correctly processes offline payment methods, such as CLABE, Oxxo, and PayCash. Note that a successful test will end in a pending payment state, as purchases with offline payment methods finalize when the customer completes the payment through another means.

To perform a test, follow the steps below.

  1. Access Mercado Pago Developers and log in as a test buyer user that you created previously. Use the username and password assigned to it. You can find these details in the documentation Integration Test > Create Test Buyer Account.
  2. Initialize the Checkout from the payment preference you created. You can find instructions on how to initialize it in the documentation Add the SDK to the Frontend and Initialize Checkout.
  3. Access the store that has your checkout integrated, select a product or service, and at the payment instance, click on the Mercado Pago purchase button.
  4. Select an offline payment method and complete the payment.

If the test is successful, you will see a screen indicating how to complete the payment.