Skip to content

Android Kit

| View as Markdown

This guide is for the integration of android kit backend with airpay payment application for accepting payments. If steps correctly followed as per the documentation, the installation will be successful.

Integration with Android Standard SDK:

The airpay Android Standard SDK package includes a sample project demonstrating the integration process using both “Kotlin” and “Java”. Please ensure you add the appropriate SDK dependency to your project as specified below.

We recommend upgrading to the latest available SDK version as outlined in the Android kit documentation.

For reference and guidance, check the “Sample App”, “Documents”, “Dependency Version File”, included in the SDK kit.

Prerequisites:

Before you begin integration, ensure the following:

step 1: Create an airpay account.
step 2: Generate "API Keys" from the airpay dashboard.
step 3: For live transactions, switch to "Live Mode API Keys" and update them in your integration.
step 4: Familiarize yourself with the airpay Payment Flow.

Follow these steps to integrate the airpay Android Standard SDK into your application:

step 1: To include the airpay SDK, update your project files as follows:
**Project-level `build.gradle`:**
groovy
dependencies {
implementation("com.airpay:Airpay-India-Kit-V4:1.0.0"){
exclude group: 'androidx.core', module: 'core'
// or
exclude group: 'androidx.legacy', module: 'legacy-support-v4'
}
}
**`settings.gradle`:**
groovy
repositories {
google()
mavenCentral()
maven {
url 'https://gitlab.com/api/v4/projects/69276629/packages/maven'
name = "GitLab"
credentials {
username = "" // Refer to the SDK documentation for credentials
password = "" // Refer to the SDK documentation for credentials
}
}
}
step 2: Initialize the SDK

Refer to the “Request Parameters to Call airpay SDK” section in the documentation for code to initiate requests. Also, manage SDK responses as described in the “Response Messages” section.

step 3: Configure ProGuard(if applicable).

If you are using “ProGuard”, ensure the required rules listed in the SDK documentation are added to your proguard-rules.pro file.

Choose Your Android Integration Kit to Download!
Section titled “Choose Your Android Integration Kit to Download!”