Cardknox is now Sola
Learn More
LogoLogo
Contact Us
  • Introduction
  • 🔗API
    • Transaction API
      • Credit Card
      • Check (ACH)
      • EBT
      • Gift Card
      • Fraud
    • Customer and Recurring API
    • Reporting API
    • Account Boarding API
      • Account Boarding Merchant Agreement
      • Account Boarding Swagger UI
    • Code Samples
    • Error Codes
  • 📦SDK
    • .NET SDK
      • Transaction Workflow
    • iOS SDK
      • iOS SDK - Technical Guide
      • Workflow
    • Android SDK
      • Android SDK - Technical Guide
  • 🧰 Cardknox Products
    • 3D Secure 2.0
      • Client-Side Integration
        • Client-Side Integration (Non-iFields)
      • Server-Side Integration
    • Account Updater
    • Batch Processing
    • Browser-Based POS systems (BBPOS)
    • CloudIM Developer Guide
    • Deep Linking
      • Deep Linking Integration for Third-Party Websites
    • EBT Online
    • Gateway Emulators
    • iFields
      • Angular iFields
    • Merchant Portal
      • FAQ
    • Mobile App
    • Split Capture
    • Tap to Phone - Android
    • Partner Portal
    • PaymentSITE
      • QR Codes for PaymentSITE
    • Webhooks
  • 📱Mobile Wallets
    • Apple Pay Hosted Checkout
      • Apple Pay Hosted Checkout Initial Setup
      • Apple Pay Prerequisites
      • Apple Pay Hosted Checkout Objects Reference (Request)
      • Apple Pay Hosted Checkout Objects Reference (Response)
      • Apple Pay iFields Integration
      • Apple Pay Hosted Checkout Sample Code
      • Apple Pay Features
      • Set up Apple Pay Merchant ID with Cardknox
    • Click-To-Pay - Hosted Checkout
      • Click-To-Pay Initial Setup
      • Click-To-Pay Sample Code
      • Click-To-Pay iFields Integration
      • Click-To-Pay Objects Reference (Request)
      • Click-To-Pay Objects Reference (Response)
    • Google Pay Hosted Checkout
      • Google Pay Control Object
      • Google Pay Request Objects
      • Google Pay Response Objects
      • Google Pay Sample Code
      • iFields Integration
      • Google Pay FAQ
  • 🔌Plugins
    • Netsuite
      • NetSuite Features and Demo
    • WooCommerce
    • Magento Plugin
    • RMH (Retail Management Hero)
    • RMS (Retail Management Systems)
  • 📖Articles
    • Frequently Asked Questions
    • How to Build POS Integration Flows
    • Card Present Integration Guide
  • Glossary of Terms
Powered by GitBook
On this page
  • Overview
  • Technical Overview
  • Getting started
  • LogCat logging

Was this helpful?

Export as PDF
  1. SDK
  2. Android SDK

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 .aar

  • SDK expects to be provided the androidx.cardview package externally, such as via the gradle rule implementation 'androidx.cardview:cardview:1.0.0'

  • App launch specifics:

    • AndroidManifest.xml file registers a mono.MonoRuntimeProvider ContentProvider, responsible for loading the Mono runtime on app launch

  • Supported architectures:

    • arm64-v8a

  • Package name is cardknox.payments.sdk

Getting started

To start:

  1. Add the obtained aar file to your Android Studio project, for example into the app module libs folder; and register the .aar in the app's build.gradle

  2. Provide the androidx.cardview dependency either explicitly or as a transitive dependency of some other package, such as com.google.android.material

CardknoxPaymentsSDK aar registration
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 1 year ago

Was this helpful?

📦