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:
| Requirement | Description |
| SDK | Version 23 or higher |
| Jetpack Compose BoM | Version 2024.12.01 or higher |
| Kotlin | Version 2.0 or higher |
| Public Key | The Public Key is directly linked to the applicationApplication details you created, so each one is unique for every integration. |
Integrate SDK
The native Mercado Pago SDK provides a robust and secure solution for card integration, ensuring full compliance with PCI standards.
To integrate the Mercado Pago SDK into your Android project, follow the steps described in the Native SDK documentation.
Configure secure fields
Secure fields are components developed to ensure the privacy and protection of sensitive data typed by the buyer. Fully PCI-compliant, 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.
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 name | GitHub Reference | Description |
| CardNumberTextField | Reference | Secure field to enter the card number. |
| ExpirationDateTextField | Reference | Secure field to enter the card expiration date. |
| SecurityTextField | Reference | Secure 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.
