REST API | Visa Platform Connect

Configuring the Module
build.gradle
File

Follow these steps to configure your module
build.gradle
file.
  1. In the Android section, add these exclusion rules to your module's
    build.gradle
    file.

    ADDITIONAL INFORMATION

    android { ... packagingOptions { exclude 'META-INF/*' exclude 'LICENSE.txt' exclude 'asm-license.txt' } }
  2. In order for the app to support Java 11 features, you must set the compatibility levels.

    ADDITIONAL INFORMATION

    android { ... compileOptions { sourceCompatibility JavaVersion.VERSION_11 targetCompatibility JavaVersion.VERSION_11 } }
  3. The Tap to Phone Android Solution library publishes a release build type only. The debug build type is not available, so set the
    matchingFallbacks
    field value to
    release
    .

    ADDITIONAL INFORMATION

    android { ... buildTypes { ... debug { matchingFallbacks = ['release'] } } }
  4. Add the required Default UI and Tap to Phone libraries to the Dependencies section of your module's
    build.gradle
    file.

    ADDITIONAL INFORMATION

    dependencies { ... // This is the Default UI dependency implementation 'io.payworks:paybutton-android:2.82.0' // This is the Tap to Phone dependency implementation 'io.payworks:mpos.android.taptophone:2.82.0' }