OneUPI Integration Docs
  • 🥳Welcome Beta Fam!
  • 📃Introduction
  • Reference
    • 👩‍💻Integration Reference
      • 1. Download SDK
      • 2. Add Dependencies
      • 3. Code Integration
    • 💻Developer Docs
Powered by GitBook
On this page
  1. Reference
  2. Integration Reference

2. Add Dependencies

Good to know: This library is included in mavenCentral. Make sure you have included mavenCentral() in repository.

Add these below lines of code in build.gradle in (Project level) :

repositories {
    ...
    mavenCentral()
}

Open build.gradle of your app module and add below lines of code to add dependency.

    dependencies {
        // One UPI Payment library
        implementation files('libs/OneUPI.aar')
        //Kotlin
        implementation "androidx.core:core-ktx:1.7.0"
        implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.6.10"
        implementation 'com.squareup.retrofit2:retrofit:2.9.0'
        implementation 'com.squareup.retrofit2:converter-gson:2.6.1'
        implementation 'com.squareup.okhttp3:okhttp:3.4.1'

    }

Add Internet permission in your AndroidManifest.xml file.

<uses-permission android:name="android.permission.INTERNET"></uses-permission>
Previous1. Download SDKNext3. Code Integration

Last updated 2 years ago

👩‍💻