New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
com.stripe.android.view.CardInputWidget crashes when inflated inside BottomSheetDialog #7755
Comments
Hi @grepx 👋 Thanks for reporting this issue, and for the detailed description. I’m able to reproduce the crash. I’ll look into a solution for Even easier: We provide a pre-built bottom sheet called |
I'd also love to see this fixed, as it is blocking me from implementing the co-badged-card requirements on the On the older version, there is no crash, however on the newer version it crashes.
|
Summary
Hi, I'm having a problem with
com.stripe.android.view.CardInputWidget
- it crashes when inflated inside BottomSheetDialog from SDK version20.32.0
- version20.31.0
is fine. The issue is still present in the latest SDK version20.36.0
. Compiles fine and crash happens at runtime on Android 14 (haven't tested other Android versions).I've tested using the
CardInputWidget
inside the Fragment that launches the BottomSheetDialog and that seems to work fine - so it does seem like this has something particular to do with BottomSheetDialog.Code to reproduce
View creation happens via inflation inside an xml file:
Which is then inflated inside a
com.google.android.material.bottomsheet.BottomSheetDialog
using a view binding:Android version
Android 14
Impacted devices
Haven't tested other devices - happens on Pixel 7.
Installation method
Via gradle dependency.
Dependency Versions
kotlin: 1.9.10
stripe-android: 20.32.0
Android Gradle Plugin: 8.1.4
Gradle: 8.0
SDK classes
com.stripe.android.view.CardInputWidget
Video
Other information
This issue looks similar to the one described in #7484 and started occurring in the same release. It has not been fixed in the latest version (20.36.0) of the SDK though.
Stack Trace only contains Android SDK classes:
The text was updated successfully, but these errors were encountered: