[flutter_stripe] App Crash on Pixel 7 – Incompatible SDK Versions for Card and Alipay Payments

We are using the flutter_stripe package in our Flutter application with a custom integration. On Google Pixel 7 devices, we are facing a critical issue where the app crashes during payment when using either card or Alipay methods, depending on the Android Stripe SDK version configured in our project.

We tested two versions of the native Stripe Android SDK:

  1. implementation 'com.stripe:stripe-android:20.53.0'
  • Card payments work
  • Alipay fails (crashes the app)
  1. implementation 'com.stripe:stripe-android:20.13.2'
  • Alipay works
  • Card payments fail

Our requirement is to support both Card and Alipay payments simultaneously on all devices, including Pixel 7. However, we are unable to find a compatible SDK version that supports both.

Request:

Please suggest a version of the Stripe Android SDK that is compatible with flutter_stripe and supports both Card and Alipay without crashing. Alternatively, if there’s a workaround or recommended configuration, kindly advise.

did you open an issue on their GitHub · Where software is built

  • Yes, but the answer is not comfortable
  • I don’t want to update the Flutter Stripe library

You have a conflict between the versions of Stripe SDK and flutter_stripe: on Pixel 7, one version works with cards, and the other with Alipay. Here’s what you can do:

Update flutter_stripe and Stripe SDK to the latest versions. Usually, the latest versions support both cards and Alipay.
Example in build.gradle:

implementation ‘com.stripe:stripe-android:20.57.0’

If it still crashes, try making card and Alipay payments in different flows: one for cards, one for Alipay. That way, they don’t conflict.

Testing without R8/Proguard: sometimes minification causes crashes on some devices. Try building a debug version without them.

If it crashes only on Pixel 7, you should send the full Stripe log to support - they will help fix the bug.

The main thing: update everything to the latest versions and, if necessary, separate card and Alipay payments.

If you want, I can write an exact working combination of flutter_stripe + Stripe SDK versions that should work with both payment methods on Pixel 7. Want me to do that?