Can't find solution to upgrade Stripe SDK

3,199

Solution 1

I had exactly the same error in the Google Play console. It was asking to upgrade sdk to 16.9.0 meanwhile that version was aborting. The only solution which worked in my case was upgrading SDK to 10.5.0.

    implementation 'com.stripe:stripe-android:10.5.0'

It is a hot fix version which resolves the Google Play compliance issues. Hope this will hep you.

Solution 2

There's a simple fix to this:

  1. Install patch-package & add it to your post-install script
  2. Go to node_modules/tipsi-stripe/android/build.gradle and change implementation 'com.stripe:stripe-android:10.4.6' to implementation 'com.stripe:stripe-android:10.5.0'
  3. Re-sync gradle
  4. Apply patch: yarn patch-package tipsi-stripe
  5. Done!

Solution 3

In case anyone uses React Native, this helped me to get it updated and launched in Google Play Store: https://gitmemory.com/issue/tipsi/tipsi-stripe/785/861289460

Share:
3,199
Pallav Nagar
Author by

Pallav Nagar

Updated on December 30, 2022

Comments

  • Pallav Nagar
    Pallav Nagar over 1 year

    enter image description here

    I am trying to publish my application to play store but I get following error. I am new to flutter and I don't know where to upgrade this SDK as I have not included it in my build.gradle or pubspec.yaml

    Error SDK Stripe Android SDK (com.stripe:stripe-android), 10.4.6 facilitates the transmission or collection of personal and sensitive information. Such behavior must comply with Google Play's Prominent Disclosure & Consent Requirements and applicable privacy policy requirements as described in the User Data policy. You can't publish this release due to this policy issue. To be allowed to publish, you may consider upgrading to 16.9.0, which the SDK provider has recommended for use instead. Please consult the SDK provider for further information.