Stripe - Android Upgrade Guide (2.3.0)
Guide for upgrading from 2.1.0 to 2.3.0
The 2.3.0 release of the Android Stripe SDK requires some configuration changes to upgrade from 2.1.0. Here are the steps to follow:
- Remove the implementation "com.stripe:stripeterminal:3.2.1" and "com.stripe:stripeterminal-localmobile:3.2.1" dependencies and replace with the following:
implementation 'com.stripe:stripeterminal-taptopay:4.7.3' implementation 'com.stripe:stripeterminal-core:4.7.3' - Remove the older version of implementation files('../libs/EverCommercePaymentsAndroidSdk-release.aar') and replace it with the newer version of the implementation files('../libs/EverCommercePaymentsAndroidSdk-release.aar') that is on version 2.3.0.
- If 'com.android.tools.build.gradle' is used in your project setup, 8.13.0 or higher is recommended. (Note - setups will vary depending on your project's needs.)
- If 'org.jetbrains.kotlin:kotlin-gradle-plugin' is used in your project setup, 1.9 or higher is recommended. (Note - setups will vary depending on your project's needs.)
- If gradle.wrapper.properties is used in your project setup, the following value in gradle.wrapper.properties for distributionUrl can be used if using 8.13.0 'com.android.tools.build.gradle' and 1.9 'org.jetbrains.kotlin:kotlin-gradle-plugin' (Note - setups will vary depending on your project's needs.) :
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
- If you are using the PaySimple Legacy SDK and the 2.3.0 SDK in the same app, remove the older version of implementation files('../libs/paysimpleandroidsdk-release-1.7.0.aar') and replace it with the newer version of the implementation files('../libs/paysimpleandroidsdk-release-1.7.1.aar') that is on version 1.7.1. Using the 1.7.0 version of the SDK will cause issues in connecting to devices using the legacy SDK.
- If step 6 applies to you, you will also need to update realm-android to version 10.15.1, as previous versions are not compatible with gradle 8.
classpath "io.realm:realm-gradle-plugin:10.15.1"
Updated 7 days ago
