Interface your application with Market Pay’s payment application.
To interface our application with another, we are using IPC, which stands for Inter-Process Communication; In Android, IPC enables communication between applications running on the same device.
There are several methods to achieve IPC in Android, such as AIDL (Android Interface Definition Language). You will find our documentation available below.
Here are the main steps towards the integration
Step 1: Understand the AIDL Interfaces
Step 2: Include AIDL Files in Your Android Project
Step 3: Implement the AIDL Interface in Your Service
Step 4: Declare the Service in AndroidManifest.xml
Step 5: Binding to the Service
Step 6: Invoke AIDL Methods
Step 7: Error Handling and Cleanup: Handle Exceptions & Unbind from the Service
Library import
Put library file into libs folder under your module directory
In build.gradle of same project provide next line
implementation files('libs/[library_file_name]') into dependency{} section library_file_name for example - "client-clientRelease-0.0.5_30ac9e7.aar"
Description example
You may find detailed description and usage example in: pl.novelpay.client.sdk for example of SDK setup
Android specs
compile_sdk : 31
min_sdk : 22
target_sdk : 30
Obfuscation and minimization
If your project uses obfuscations via R8 tool, please add those rules to your proguard.pro files
-keep class pl.novelpay.** { *; }
-dontwarn pl.novelpay.**
-keep class org.koin.** { *; }
-keep class androidx.lifecycle.** { *; }
-keep class com.jakewharton.threetenabp.** { *; }
-dontwarn com.google.gson.annotations.SerializedName -dontwarn javax.xml.stream.Location
-dontwarn javax.xml.stream.XMLEventReader
-dontwarn javax.xml.stream.XMLInputFactory
-dontwarn javax.xml.stream.events.Attribute
-dontwarn javax.xml.stream.events.Characters
-dontwarn javax.xml.stream.events.StartElement
-dontwarn javax.xml.stream.events.XMLEvent
-dontwarn kotlinx.parcelize.Parcelize
-keepattributes
InnerClasses,Signature,RuntimeVisible*Annotations,EnclosingMethod -dontwarn com.google.gson.TypeAdapter
-dontwarn com.google.gson.stream.JsonReader -dontwarn com.google.gson.stream.JsonWriter -keep class kotlin.Metadata { *; }
-keep class org.simpleframework.** { *; }
# Preserve all annotations.
-keepattributes Annotation