-
Notifications
You must be signed in to change notification settings - Fork 659
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
[BUG] IllegalStateException: CreateIntentCallback must be implemented when using IntentConfiguration with PaymentSheet #9760
Comments
Hello, same here we have this crash for Android 12 and Android 14 devices and unable to reproduce on other devices :
|
Hi @hjdealba96, thanks for reporting! We'll look into this. |
Hello @joyceqin-stripe! Do you have any updates about this issue? The reports of this crash have been increasing over the past few weeks and we're concerned about the impact it could have in the near future. I would appreciate any information. |
Summary
Hello there! Recently, we've integrated
PaymentSheet
+IntentConfiguration
in our project to collect user's payment methods. While the integration seems to be working fine, we've been getting occasional reports of this crash associated with a missingCreateIntentCallback
callback:We have tried several times to replicate this crash on our end with no success. As you can see in the stack trace, there are no lines associated with our project's codebase. Seems like this exception is thrown from the internals of the SDK?
Hope someone can give me a hand solving this issue. I'd really appreciated it!
Code to reproduce
Following the official documentation, here's how the
PaymentSheet
is instantiated and receives the callbacks:NOTE:
::onCreateSetupIntent
implementsCreateIntentCallback
, which is supposed to be the missing callback mentioned in the stack trace, isn't it?These are the implementations of the callbacks using function references:
And this is how the
PaymentSheet
is launched:Android version and Impacted devices
So far the vast majority of the reports on Firebase Crashlytics come from Samsung phones with Android 14, but also from some Motorola models with Android 12 and 14.
Installation method
Gradle
Dependency Versions
We're using the SDK version 20.53.0
The text was updated successfully, but these errors were encountered: