#MercadoPago - Android SDK
The MercadoPago Android SDK make it easy to collect your users' 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.
###Android Studio
Add this line to your app's build.gradle
inside the dependencies
section:
compile ('com.mercadopago:android-sdk:0.9.9@aar') { transitive = true }
###Eclipse
- Clone the repository.
- Be sure you've installed the Android SDK with API Level 21 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.** { *; }
This project includes five examples you can follow to understand how MercadoPago SDK works:
- Start with a simple card form payment flow
- Add your customers' cards to the flow
- Manage installments and bank issuers
- Pay with other payment types (ticket, atm)
- Let MercadoPago SDK do steps 1-4 for you!
- [Read more about this 5 steps integration.] (http://labs.mercadopago.com.ar/developers/es/solutions/payments/custom-checkout/charge-with-creditcard/android/)
- [Check out MercadoPago Developers Site!] (http://labs.mercadopago.com.ar/developers)
You can join the MercadoPago Developers Community on MercadoPago Developers Site: