Android SDK - Technical Guide
Overview
This document helps developers to integrate the Cardknox Payments SDK with an Android app project using the gradle build system.
Technical Overview
The SDK is distributed as an
.aarSDK expects to be provided the
androidx.cardviewpackage externally, such as via the gradle ruleimplementation 'androidx.cardview:cardview:1.0.0'App launch specifics:
AndroidManifest.xmlfile registers amono.MonoRuntimeProviderContentProvider, responsible for loading the Mono runtime on app launch
Supported architectures:
arm64-v8a
Package name is
cardknox.payments.sdk
Getting started
To start:
Add the obtained
aarfile to yourAndroid Studioproject, for example into theappmodulelibsfolder; and register the.aarin the app'sbuild.gradleProvide the
androidx.cardviewdependency either explicitly or as a transitive dependency of some other package, such ascom.google.android.material
dependencies {
implementation fileTree(dir: 'libs', include: ['Cardknox.Payments.SDK.aar'])
// Option 1: explicitly provide the androidx.cardview dependency for the SDK
implementation 'androidx.cardview:cardview:1.0.0'
// Option 2: implicitly provide the androidx.cardview dependency via the google.material package
implementation 'com.google.android.material:material:1.5.0'
}LogCat logging
To capture Cardknox SDK Logcat logs, create a new Logcat filter with the following tag:
(Cardknox_DroidSDKLogger|IDT_Event)

Last updated
Was this helpful?

