Documentation Index
Fetch the complete documentation index at: https://developer.transactbridge.com/llms.txt
Use this file to discover all available pages before exploring further.
This guide walks you through integrating the TransactBridge Drop-in SDK into your Android app.
Integration Methods
You can integrate the TransactBridge Android Drop-in SDK in two ways:
Option 1: Direct AAR File
-
Download the AAR:
- Download dropin.aar file by clicking here
-
Add the AAR to your project:
- Place
dropin.aar in your app’s libs/ directory.
- In your
app/build.gradle:
android {
repositories {
flatDir { dirs 'libs' }
}
}
dependencies {
implementation(name: 'dropin', ext: 'aar')
}
-
Declare Required Dependencies:
dependencies {
// ... other dependencies
// TransactBridge SDK dependencies
implementation 'com.google.code.gson:gson:2.10.1'
implementation 'com.android.volley:volley:1.2.1'
implementation 'com.squareup.okhttp3:okhttp:4.12.0'
implementation 'com.squareup.okhttp3:logging-interceptor:4.12.0'
}
- Sync your project with Gradle.
Option 2: Maven Central (Coming Soon)
Once available, simply add:
dependencies {
implementation 'com.transactbridge:transactbridge-sdk:1.0' // Use actual version
}
Usage Example
import com.transactbridge.sdk.PaymentSDK;
import com.transactbridge.sdk.Environment;
public class MyApplication extends Application {
@Override
public void onCreate() {
super.onCreate();
PaymentSDK.initialize(this, "YOUR_PUBLISH_KEY", Environment.UAT); // Choose PRODUCTION, SANDBOX, or UAT
}
}
For more details on using the SDK, see the v1.0 documentation.