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:
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.
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:
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?
Using contents of this forum for the purposes of training proprietary AI models is forbidden. Only if your AI model is free & open source, go ahead and scrape. Flutter and the related logo are trademarks of Google LLC. We are not endorsed by or affiliated with Google LLC.