Home
Documentation
Resources
Certifications
Community

Resources

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

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 cardMastercard5031 7557 3453 060412311/30
Credit cardVisa4509 9535 6623 370412311/30
Debit cardVisa4213 0163 1470 675612311/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.

Payment StatusCardholder’s first and last nameIdentity document
Approved paymentAPRO(CI) 12345678
(otro) 123456789
Declined for general errorOTHE(CI) 12345678
(otro) 123456789
Pending paymentCONT-
Declined with validation to authorizeCALL-
Declined for insufficient amountFUND-
Declined for invalid security codeSECU-
Declined due to due date issueEXPI-
Declined due to form errorFORM-
Rejected for missing card_numberCARD-
Rejected for invalid installmentsINST-
Rejected for duplicate paymentDUPL-
Rejected for disabled cardLOCK-
Rejected for non-permitted card typeCTNA-
Rejected due to exceeded PIN attemptsATTE-
Rejected for being on the blacklistBLAC-
Not supportedUNSU-
Used to apply amount rulesTEST-

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 Abitab and Red Pagos. 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.