Scenario
Suitable for the front-end Android App and provides the embedded checkout function. For sample code please refer to GitHub.
Supports
- JAVA JDK 11
- Android Gradle Plugin 7.0.4(Android Studio Arctic Fox (2023.3.1) Patch 4)
- minSdkVersion 21 (Android 5.0)
- targetSdkVersion 33 (Android 13.0)
Installation
- Maven Central
- In the app/build.gradle file, add the dataBinding setting
android {
buildFeatures {
dataBinding true
}
}
- the app/build.gradle file add the dependencies
dependencies {
implementation 'androidx.appcompat:appcompat:1.3.0'
implementation 'com.google.android.material:material:1.1.0'
implementation 'com.google.code.gson:gson:2.9.0'
implementation 'com.google.zxing:core:3.3.0'
implementation 'com.squareup.okhttp3:okhttp:4.12.0'
implementation 'com.squareup.okhttp3:logging-interceptor:4.12.0'
implementation 'com.squareup.retrofit2:retrofit:2.9.0'
implementation 'com.squareup.retrofit2:converter-gson:2.9.0'
// ECPay Payment SDK
implementation 'tw.com.ecpay:ECPayPaymentGatewayKit:1.6.0'
}
- the project/build.gradle file add Maven Central
buildscript {
repositories {
google()
mavenCentral()
}
}