Integration for APM

Velocity Android Software Development Kit Integration Guide

You can easily integrate SDK with an Android device for an alternate payment method (APM); however, the integration workflow depends on the APM used for a transaction. This section provides examples using PayPal.

Application Configurations

Before you start integrating the SDK for APM transactions, you need to make the following configurations in your mobile application. To integrate the SDK with an Android device for an APM, complete the following steps:

  1. Add the following line to build.gradle file of your app:
    implementation "com.cellpointmobile.mpoint:mPoint:2.5.0@aar"
    
  2. Copy PPFraud.jar file into libs folder of your application.
    Note: Include this jar only if you opt for fraud detection feature.
  3. Add the following line to build.gradle file of your application:
    compile 'com.android.support:customtabs:28.0.0'
    
  4. Add the following intent filters to the activity to implement mPoint initialization and authorization. This is achieved using deep linking.
    <intent-filter>
        <action android:name="android.intent.action.VIEW" />
     
        <category android:name="android.intent.category.DEFAULT" />
        <category android:name="android.intent.category.BROWSABLE" />
        <!—the following host and scheme is required to return call back from Paypal-->
        <data
            android:host="[MERCHANT URL].<CLIENT_HOST_DOMAIN_PREFIX>.PayPalReturn"
            android:scheme="cellpoint" />
    </intent-filter>