-
Notifications
You must be signed in to change notification settings - Fork 255
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
isGooglePaySupported causes crash in android #1065
Comments
We call Could you confirm that for me? |
Yes, can confirm, If I wrap the call of |
+1 |
Having the same issue only on first build. After the crash, the issue goes away when reopening app. I assume init is called at that point.
The way React mounts components is always children first, so this is probably the issue for people who have |
@charliecruzan-stripe any updates from the team on getting this on the roadmap to fix? Glad there's a short-term workaround but would love to proactively address this in the library if possible |
Yep, this will get fixed soon. Have a branch open to fix this and other cases soon |
@charliecruzan-stripe - Any update here? This is breaking our app in production and not able to replicate. |
I think the crash occurs because the |
Any update on this? Any workaround possible while waiting for a proper fix? |
Hello @sregg , I had the exact same problem, don't init until we know the user's country which requires waiting until the store was loaded from storage. I found the best solution was to wrap the Once your app has loaded you can recall your initStripe wrapper method again with the correct country, It's not a perfect approach but we are using this in production just fine. |
Thanks Nathan. That's pretty much what I ended up doing. |
@charliecruzan-stripe Is there any update on this? We are experiencing this issue as well. Would be good to know where you are with the issue. |
I got an issue because I called |
Many thanks, it was my issue as well |
Describe the bug
App is wrapped in the
StripeProvider
and in the child component I'm callingisGooglePaySupported
promise, but each time it causes crash in android.java.lang.IllegalStateException: PaymentConfiguration was not initialized. Call PaymentConfiguration.init().
In manifest I have
Smartphone (please complete the following information):
Case that I have:
Inside
ChildComponent
I'm callingand
isGooglePaySupported
causes a crashThe text was updated successfully, but these errors were encountered: