Skip to content

Installation

In this guide

Add the DigetPay AAR to your project, wire the required runtime dependencies, and confirm your module builds. Takes about five minutes.

Requirements

Android minSdk
24
Recommended compileSdk
36
Java target
11
Kotlin
2.0+

Add the AAR

Download the latest release AAR and copy it into your app module:

Download digetpay-sdk-release.aar

Copy the downloaded AAR to:

app/libs/digetpay-sdk-release.aar

Keep the AAR under version control

Commit the AAR (or fetch it in CI) so every developer and build agent uses the exact same SDK binary.

Build the AAR Locally

If you are working from this repository, you can generate the release AAR locally.

Generate the release AAR from this repository with:

./gradlew :digetpay-sdk:assembleRelease

The output is:

digetpay-sdk/build/outputs/aar/digetpay-sdk-release.aar

Configure Repositories

Make sure your settings.gradle.kts exposes Google and Maven Central:

dependencyResolutionManagement {
    repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
    repositories {
        google()
        mavenCentral()
    }
}

Add Dependencies

Add the SDK AAR and runtime dependencies to your app module:

dependencies {
    implementation(files("libs/digetpay-sdk-release.aar"))

    implementation("com.squareup.retrofit2:retrofit:2.11.0")
    implementation("com.squareup.retrofit2:converter-gson:2.11.0")
    implementation("com.squareup.okhttp3:logging-interceptor:4.12.0")
    implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.9.0")
    implementation("androidx.core:core-ktx:1.15.0")
    implementation("androidx.activity:activity-ktx:1.9.3")
    implementation("androidx.lifecycle:lifecycle-runtime-ktx:2.8.7")
    implementation("androidx.browser:browser:1.8.0")
}

Add every runtime dependency

The AAR does not embed transitive runtime dependencies. If you skip one, the app compiles but can crash at runtime with ClassNotFoundException. Add them all explicitly in the host app as shown above.

Next step

The SDK is installed. Continue to Configuration to initialize DigetPay with your API key and environment.