How to improve payment approval
To prevent a legitimate payment from being rejected due to not meeting security validations, you need to include as much information as possible when performing the operation and ensure that your checkout has an optimized interface.
Below are our recommendations to improve your approval rate.
The Device ID is important information to ensure better security and, consequently, a better payment approval rate. It is a unique identifier for each buyer's device at the time of purchase.
If a frequent buyer makes a purchase from a different device than usual, this may be seen as atypical behavior. Although it may not necessarily be fraud, the device ID helps us refine the assessment and prevents us from rejecting legitimate payments.
To use the Device ID on the web and prevent potential fraudulent purchases, follow these steps:
1. Add the Mercado Pago security script
To implement Device ID generation on your site, add this code to your checkout page:
html
<script src="https://www.mercadopago.com/v2/security.js" view="checkout"></script>
2. Get the Device ID
Once you have added the Mercado Pago security code to your site, a global Javascript variable named MP_DEVICE_SESSION_ID
is automatically created, which contains the Device ID.
If you prefer to use another variable, you can specify the name by adding the output
attribute to the security script, like this:
html
<script src="https://www.mercadopago.com/v2/security.js" view="checkout" output="deviceId"></script>
You can also create your own variable. Just add an html
tag to your site with the identifier id="deviceID"
, like this:
html
<input type="hidden" id="deviceId">
3. Use the Device ID
Once you have the Device ID value, you need to send it to our servers when creating a payment. You must add this header
to your request and replace device_id
with the name of the variable where you stored your Device ID value.
html
X-meli-session-id: device_id
To optimize payment security validation and improve approvals, it's important to send as much data as possible about the buyer and the product.
Pay attention to all the attributes you can send to the create paymentAPI, especially in the additional information (additional_info
), such as buyer data, product details, and shipping information.
To improve the efficiency of our fraud engine, we recommend submitting the industry data that corresponds to your business segment. You can find more details about each sector and the data we recommend including in the Industry Data documentation.
Before deploying your integration to a production environment, it's necessary to verify its quality, either manually or automatically. This will ensure that the integration meets Mercado Pago's quality and security standards and will provide actions to improve the approval rate.
To measure quality, you need to perform an integration certification process. Check the How to measure integration quality documentation.
Ensuring that your online store complies with the main security protocols for online transactions is necessary not only to improve payment approval rates but also to increase consumer confidence.
Check out some recommended configurations to strengthen this confidence and protect your customers' sensitive information during the payment process:
- SSL Certificate: The Secure Sockets Layer ensures the encryption of personal and financial information during transactions, ensuring that all data exchanged between the server and client is protected and prevents leaks.
- HTTPS: The HyperText Transfer Protocol Secure is a security indicator for all your customers and ensures that all communication with the Mercado Pago API is done securely.
- Mercado Pago Wallet: Enabling payment through Mercado Pago’s wallet brings a range of benefits for both user experience and risk management. Since only logged-in users can use this option, we have access to more detailed information about the payer and the transaction context, allowing for even more efficient fraud prevention analysis thanks to the greater number of available variables. Additionally, payments made with account balance have significantly higher approval rates, as they are internal operations within the Mercado Pago ecosystem and are not subject to chargebacks.
In the event of a declined payment, notifying the user of the reason and highlighting the available alternatives is essential. In Checkout Pro, the experience is even more seamless, as the system offers additional payment attempts, allowing the customer to choose another way to complete the purchase. This approach not only helps to resolve the issue, but also demonstrates attentiveness and proximity in customer service.
Providing customers with an optimized store will contribute to the success of operations. For this, it's important to ensure that your team has a deep understanding of the system and its configurations. This knowledge will enable quick problem resolution and better service to different customer needs. This includes providing accessible and efficient support channels to help users who face difficulties during the payment process. This can be done through live chat, email, or phone.
:::::AccordionComponent{title="Implement an identity verification mechanism"} It is recommended to implement advanced security mechanisms to protect online transactions. 3DS 2.0 authentication, for example, adds an extra layer of protection by allowing the user to validate their identity at the time of payment, significantly reducing the risk of fraud. For more details on how to integrate or activate 3DS 2.0 in Checkout Pro, please contact the commercial team. :::::