IDE Setup
Prerequisites
- Android Studio 4.2+
- Kotlin 1.5.30+
- Android SDK 30+
- Payment SDK AAR/JAR and AIDL files from vendor
Setup Andoid Studio
The development of the app requires understanding the use of Android Studio. For more information on Android studio, please follow this link.
Create New Project:
Create a new project in the IDE by
- Open the file menu
- Click on New
- Create a new project
For detailed instructions, please follow the link.
Add SDK Dependencies:
Include the TNS-Payment-SDK-vX.X.X.X.aar file in your project
When you add an .aar file to your IDE:
- Library Integration: It imports a complete Android library module, including compiled code (
.classfiles), resources (layouts, drawables, strings), and manifest entries. - SDK Functionality: It enables your client app to access the SDK’s APIs, UI components, and background services—essential for interacting with card terminals.
- Build Configuration: The IDE updates the project’s
build.gradleto include the.aaras a dependency, ensuring it’s packaged correctly during compilation. - Code Completion & Debugging: You get access to auto-complete, documentation, and debugging support for the SDK’s exposed methods and classes.
- Encapsulation: It keeps the SDK modular and version-controlled, allowing easy updates without exposing internal implementation details.
Was this section helpful?
1
2
3
4
dependencies {
implementation("com.tnsi.aidlpayservice:aidl-service:1.0.0") // SDK dependency
implementation("androidx.compose.material3:material3:1.1.2")
}Was this section helpful?