Android APP SDK / 使用說明

Android SDK使用說明

適用於前端Android App,提供特店站內付2.0金流功能。Android SDK詳細的安裝方式與範例程式請參閱 GitHub

支援

  • 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)

安裝

  • ECPay Payment SDK公開於Maven Central來源庫。請於app/build.gradle檔案加上dataBinding設定
				
					android {
    dataBinding {
        enabled = true
    }
}
				
			
  • app/build.gradle 檔案新增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'
}
				
			
				
					buildscript {
    repositories {
        google()
        mavenCentral()
    }
}
				
			

Copyright © Green World FinTech Service Co., Ltd. All rights reserved.

綠界官方網站