paypal / paypal-here-sdk-android-distribution

Add credit card (swipe & key-in) capabilities to your Android app
Other
83 stars 95 forks source link

Introduction

The PayPal Here SDK enables Android apps to process in-person credit card transactions using an assortment of card readers that are capable of accepting contactless, EMV, and swipe payment methods.

Developers should use the PayPal Here SDK to get world-class payment processing with one simple integration. Some of the main benefits include

Note: From 1 July 2021 AEST, PayPal Here services (including both the credit card reader devices and the PayPal Here App) will no longer be available in Australia. This means you will not be able to accept payments through PayPal Here with the credit card reader device or via the PayPal Here App from that date. We have also ceased the sale of new PayPal Here credit card reader devices. If you are looking for a card payment solution, please see here. If you are an existing PayPal Here customer and have any questions, please click here.

Supporting Materials

Installation

Our recommended installation method is to reference from Maven:

dependencies {
    repositories {
        mavenCentral()
    }

    // api('com.paypal.retail:here-sdk-release:2.0.0.201801@aar'){transitive=true}
    api('com.paypal.retail:here-sdk-debug:2.0.0.201801@aar'){transitive=true}
}

There's both a Debug and Release build available to be referenced. Please make sure that you switch to the Release build prior to pushing your app to the Play Store otherwise your submission will likely be rejected.

Also, if you see a runtime exception java.lang.IllegalStateException: J2V8 native library not loaded, please add the following code. More info on this could be found here paypal-here-sdk-android-distribution/issues/118.

android {
    ....
    defaultConfig {
        ....
        ndk {
            abiFilters "armeabi", "armeabi-v7a", "x86", "mips"
        }
    }
}

Housekeeping Items

There are a few noteworthy items that should be called out. These include: