Integrate IAPASAP-MiniProgram SDK
This topic explains how to integrate the IAPASAP-MiniProgram SDK into your super app. Integration enables log reporting and data collection for mini programs. Before you begin, ensure that you have already integrated the IAPMiniProgram SDK into your app.
Add dependencies
To add the required dependencies, take the following steps:
- Add the dependencies in the app-level build.gradle file using the following code:
copy
// in app build.gradle
// if there are some conflicts with existing sdk, please exclude them
dependencies {
implementation "com.alipay.plus.android:iapasap-miniprogram:${asap_version}"
}- Externalize the version number in the build.gradle file to facilitate managing upgrades using the following code:
copy
ext {
asap_version = 'ASAP_VERSION'
}Replace the value of ASAP_VERSION with the latest version number.
Next steps
Once you have initialized both the IAPASAP SDK and the IAPMiniProgram SDK, you can use the SDKs in mini programs and H5 (mobile web pages). For usage guidance, refer to the IAPMiniProgram JSAPIs.