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 cardMastercard5031 4332 1540 635112311/30
Credit cardVisa4235 6477 2802 568212311/30
Credit cardAmerican Express3753 651535 56885123411/30
Debit cardElo5067 7667 8388 831112311/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 Status | Cardholder’s first and last name | Identity document | Identity document | | --- | --- | --- | | Approved payment | APRO | (CPF) 12345678909 | | Declined for general error | OTHE | (CPF) 12345678909 | | Pending payment | CONT | - | | Declined with validation to authorize | CALL | - | | Declined for insufficient amount | FUND | - | | Declined for invalid security code | SECU | - | | Declined due to due date issue | EXPI | - | | Declined due to form error | FORM | - | | Rejected for missing card_number | CARD | - | | Rejected for invalid installments | INST | - | | Rejected for duplicate payment | DUPL | - | | Rejected for disabled card | LOCK | - | | Rejected for non-permitted card type | CTNA | - | | Rejected due to exceeded PIN attempts | ATTE | - | | Rejected for being on the blacklist | BLAC | - | | Not supported | UNSU | - | | Used to apply amount rules | TEST | - |

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 Pix or Boleto. 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.