Integrate for mobile applications - Card - Mercado Pago Developers

Integration for mobile applications

The integration via the Native SDK Core Methods from Mercado Pago offers full control over the capture and processing of payment information, allowing you to create and customize forms according to your needs.

To integrate the Mercado Pago Native SDK using Core Methods, refer to the instructions specific to each technology:

Requirements

Before you start the integration, make sure your project meets the following requirements:

RequirementDescription
SDKVersion 23 or higher
Jetpack Compose BoMVersion 2024.12.01 or higher
KotlinVersion 2.0 or higher
Public KeyThe Public KeyPublic key used in the frontend to access information and encrypt data. You can access it through Your integrations > Application details > Production > Production credentials. is directly linked to the applicationEntity registered in Mercado Pago that acts as an identifier to manage your integrations. For more information, see the link below.Application details you created, so each one is unique for every integration.

Configure secure fields

Secure fields are components developed to ensure the privacy and protection of sensitive data typed by the buyer. Fully PCI-compliantSet of security rules designed to protect payment card data against fraud and data breaches., these fields ensure that the application never has direct access to the entered information, which is securely transmitted only for the creation of tokens and transactions.

All interactions with these fields occur through callbacks, allowing the capture of relevant events without exposing user data. The methods described below use instances of these secure fields, so it is essential that they are properly configured in the checkout interface before using them.

Each component notifies the integrating application when there is a value change, without exposing the entered data, and also informs the result of the field validation according to PCI and card rules.

The data typed in the secure fields is never available to the integrating application. They are securely sent only for the creation of tokens and transactions.

In the table below, you will find the details of the available components. For more information about configuration, refer to the corresponding documentation for each component on GitHub.

Component nameGitHub ReferenceDescription
CardNumberTextFieldReferenceSecure field to enter the card number.
ExpirationDateTextFieldReferenceSecure field to enter the card expiration date.
SecurityTextFieldReferenceSecure field to enter the security code (CVV).

Core Methods

Core Methods are essential for building a checkout flow integrated with Mercado Pago. They use information captured by the secure fields and enable the execution of the main payment operations.

Each method should be used according to the needs of your payment flow. To use them, start by creating an instance of Core Methods in your class with the following Kotlin code: val coreMethods = MercadoPagoSDK.getInstance().coreMethods.

This way, you will be able to use any of the methods listed below:

Examples and references

To deepen your understanding of the implementation and use of the SDK, check the GitHub repository.

The repository includes a complete sample module, demonstrating the integration of secure fields and Core Methods, as well as an integrated and secure checkout flow.