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:
- 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.
- 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.
- 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.
- 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 type | Flag | Number | Security code | Expiration date |
Credit card | Mastercard | 5031 4332 1540 6351 | 123 | 11/30 |
Credit card | Visa | 4235 6477 2802 5682 | 123 | 11/30 |
Credit card | American Express | 3753 651535 56885 | 1234 | 11/30 |
Debit card | Elo | 5067 7667 8388 8311 | 123 | 11/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.
- 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.
- 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.
- 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.
- 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.