The MercadoPago Android SDK makes it easy to collect your user's credit card details inside your android app. By creating tokens, MercadoPago handles the bulk of PCI compliance by preventing sensitive card data from hitting your server.
Add this line to your app's build.gradle
inside the dependencies
section:
compile 'com.mercadopago:sdk:2.5.4'
- Clone the repository.
- Be sure you've installed the Android SDK with API Level 25 and android-support-v7
- Import the sdk folder into Android Studio
- Add the folder as library.
If you're planning on optimizing your app with ProGuard, make sure that you exclude the MercadoPago bindings. You can do this by adding the following to your app's proguard.cfg
file:
-keep class com.mercadopago.** { *; }
You can join the MercadoPago Developers Community on MercadoPago Developers Site: