Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't find solution to upgrade Stripe SDK

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.

like image 563
Pallav Nagar Avatar asked Jun 12 '21 18:06

Pallav Nagar


People also ask

What is error error SDK stripe?

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.

What version of the SDK should I upgrade to?

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. Please paste the text of the error, not screenshots.

Why can't I publish this release of the SDK?

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.


2 Answers

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.

like image 199
V Nikoyan Avatar answered Nov 10 '22 09:11

V Nikoyan


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!
like image 39
Gregg Avatar answered Nov 10 '22 08:11

Gregg