Setup
Learn how to setup the Dojo Android SDK.
Declare the repository
Dojo hosts the Android SDK dependencies in a Maven repository. You can declare the Dojo Android SDK repository by adding the URL in the top-level build.gradle file.
info
- The SDK uses an external library Cardinal to support 3DS. To get the credentials, contact Dojo support.
- Ensure that you exclude payment-related fields from tracking if you are using screen recording or session recording services like LogRocket or UXCam. You can do that by setting
themeSettings.analyticsExcludedFieldsIdentifierwith your identifier value.
build.gradle
repositories {
...
maven {
url = uri("https://cardinalcommerceprod.jfrog.io/artifactory/android")
credentials { // Contact Dojo support for credentials
username = ""
password = ""
}
}
}
Add dependency
To install the Dojo Android SDK, add tech.dojo.pay to dependencies of your app\build.gradle file.
build.gradle
dependencies {
...
implementation ("tech.dojo.pay:sdk:1.6.2")
implementation ("tech.dojo.pay:uisdk:1.3.5")
}
If your app supports ProGuard, add the following dependency to your proguard-rules.pro file:
proguard-rules.pro
-keep class com.cardinalcommerce.dependencies.internal.bouncycastle.**
-keep class com.cardinalcommerce.dependencies.internal.nimbusds.**
-keep class tech.dojo.pay.** { *; }