All Projects → mercadopago → Px Android

mercadopago / Px Android

Licence: mit
Mercado Pago's Official Android checkout library

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Px Android

Insight
SymfonyInsight Official SDK
Stars: ✭ 73 (-6.41%)
Mutual labels:  sdk
React Native Jw Media Player
React-Native Android/iOS bridge for JWPlayer SDK (https://www.jwplayer.com/)
Stars: ✭ 76 (-2.56%)
Mutual labels:  sdk
Alipay Sdk Net All
支付宝开放平台 Alipay SDK for .NET
Stars: ✭ 77 (-1.28%)
Mutual labels:  sdk
Unityrtc
基于webrtc的unity多人游戏实时语音(A Unity Demo for Impl Real-time Game Voice Among Mutiplayers Based On WEBRTC)
Stars: ✭ 74 (-5.13%)
Mutual labels:  sdk
Modio Sdk Legacy
SDK for integrating mod.io into your game - a modding API for game developers
Stars: ✭ 75 (-3.85%)
Mutual labels:  sdk
Line Bot Sdk Python
LINE Messaging API SDK for Python
Stars: ✭ 1,198 (+1435.9%)
Mutual labels:  sdk
Russianpost
SDK для работы с API Почты России (pochta.ru)
Stars: ✭ 72 (-7.69%)
Mutual labels:  sdk
Braintree Android Drop In
Braintree Drop-In SDK for Android
Stars: ✭ 78 (+0%)
Mutual labels:  sdk
Gbdxtools
Python SDK for using GBDX.
Stars: ✭ 75 (-3.85%)
Mutual labels:  sdk
Huobi golang
Go SDK for Huobi Spot API
Stars: ✭ 76 (-2.56%)
Mutual labels:  sdk
Streaming Ios
This repository contains a simple project with a number of iOS examples that can be used for testing and reference.
Stars: ✭ 74 (-5.13%)
Mutual labels:  sdk
Meilisearch Python
Python wrapper for the MeiliSearch API
Stars: ✭ 75 (-3.85%)
Mutual labels:  sdk
Meta Clang
Clang C/C++ cross compiler and runtime for OpenEmbedded/Yocto Project
Stars: ✭ 76 (-2.56%)
Mutual labels:  sdk
Hera
A framework for running WeChat applet. (小程序 SDK,小程序转 H5,小程序转安卓、iOS 原生应用、小程序渲染引擎)
Stars: ✭ 1,186 (+1420.51%)
Mutual labels:  sdk
Docusign Java Client
The Official DocuSign Java Client Library used to interact with the eSign REST API. Send, sign, and approve documents using this client.
Stars: ✭ 77 (-1.28%)
Mutual labels:  sdk
Foal
Elegant and all-inclusive Node.Js web framework based on TypeScript. 🚀.
Stars: ✭ 1,176 (+1407.69%)
Mutual labels:  sdk
Cloudinary Vue
Cloudinary components library for Vue.js application, for image and video optimization.
Stars: ✭ 76 (-2.56%)
Mutual labels:  sdk
Wechat
Deprecated 微信公众平台企业号 SDK
Stars: ✭ 78 (+0%)
Mutual labels:  sdk
Uploadcare Php
PHP API client that handles uploads and further operations with files by wrapping Uploadcare Upload and REST APIs.
Stars: ✭ 77 (-1.28%)
Mutual labels:  sdk
Vab
V Android Bootstrapper
Stars: ✭ 77 (-1.28%)
Mutual labels:  sdk

Build Status codecov Bintray GitHub tag GitHub top language

⚠️ PX-Android 4.28.0 is the last version with minimum API level 16 ⚠️

Screenshot MercadoPago

The MercadoPago Android Payment Experience 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.

🌟 Features

  • Easy to install

  • Easy to integrate

  • PCI compliance

  • Basic color customization

  • Advanced color customization

  • Lazy loading initialization support

  • Custom Fragments support in certain screens

  • Support to build your own Payment Processor

  • Support to create your own custom Payment Method

Installation

Android Studio

Add this line to your app's build.gradle inside the dependencies section:

implementation 'com.mercadopago.android.px:checkout:4.+'

Local deployment

With this command you can generate a local version for testing:

./gradlew publishAar

🐒 How to use?

Only 3 steps needed to create a basic checkout using MercadoPagoCheckout:

  1. Import into your project
import com.mercadopago.android.px.core.MercadoPagoCheckout.Builder;
  1. Set your PublicKey and PreferenceId
final MercadoPagoCheckout checkout = new MercadoPagoCheckout.Builder("public_key", "checkout_preference_id")
    .build();
  1. Start
checkout.startPayment(activityOrContext, requestCode);

One line integration

new MercadoPagoCheckout.Builder("public_key", "checkout_preference_id")
    .build()
    .startPayment(activityOrContext, requestCode);

Credentials

Get your Credentials

Screenshot Credentials

Create your preference id

curl -X POST \
     'https://api.mercadopago.com/checkout/preferences?access_token=ACCESS_TOKEN' \
     -H 'Content-Type: application/json' \
     -d '{
           "items": [
               {
               "title": "Dummy Item",
               "description": "Multicolor Item",
               "quantity": 1,
               "currency_id": "ARS",
               "unit_price": 10.0
               }
           ],
           "payer": {
               "email": "[email protected]"
           }
     }'
  • payer email has to be different from the one of credentials.

Advanced integration

Check our official code reference, especially MercadoPagoCheckoutBuilder object to explore all available functionalities.

🔮 Project Example

This project include an example project using MercadoPago PX. In case you need support contact the MercadoPago Developers Site.

Documentation

Feedback

You can join the MercadoPago Developers Community on MercadoPago Developers Site:

🌈 Basic color customization

    <!-- Main color -->
    <color name="ui_components_android_color_primary">@color/your_color</color>

    <!-- Toolbar's text color -->
    <!-- Default: @color/ui_components_white_color -->
    <color name="px_toolbar_text">@color/your_color</color>

    <!-- Status Bar color -->
    <color name="ui_components_android_color_primary_dark">@color/your_color</color>

    <!-- Spinner primary color -->
    <!-- Default: @color/ui_components_android_color_primary -->
    <color name="ui_components_spinner_primary_color">@color/your_color</color>

    <!-- Spinner secondary color -->
    <!-- Default: @color/ui_components_android_color_primary -->
    <color name="ui_components_spinner_secondary_color">@color/your_color</color>

    <!-- Spinner background color -->
    <!-- Default: @color/ui_components_white_color -->
    <color name="px_background_loading">@color/your_color</color>

    <!-- Payment method icon color -->
    <!-- Default: @color/ui_components_android_color_primary -->
    <color name="px_paymentMethodTint">@color/your_color</color>

    <!-- Inputs color -->
    <!-- Default: @color/ui_components_android_color_primary -->
    <color name="px_input">@color/your_color</color>

Looking for something else? check here:

🌈 Fonts customization

Our checkout uses REGULAR and LIGHT fonts declared here:

Meli UI

Fonts.setFonts(yourFontsPathsByType)

👨🏻‍💻 Author

Mercado Pago / Mercado Libre

👮🏻 License

MIT License

Copyright (c) 2018 - Mercado Pago / Mercado Libre

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].