-
Notifications
You must be signed in to change notification settings - Fork 266
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
app crashes when calling presentPaymentSheet for android with android v10 #1580
Comments
I faced the same problem. For some reason, only 20% of users have this problem regardless of the device (Huawei, Samsung, etc.) Error: |
@BigPun86 @alex-vasylchenko same issue for me! If you disable Google Pay in initPaymentSheet, it works! @charliecruzan-stripe help! |
Hm interesting, @BigPun86 you say this started this week- was this after an upgrade to your stripe-react-native version? @alex-vasylchenko you mentioned downgrading to v32- are you referring to the android SdkVersion? This dependency is added by stripe-android, and we haven't changed anything about that dependency in quite a while. |
I was not clear enough sorry.. I meant that i have heard from my customers this week that there were issues when they tried to pay. We had upgraded the @stripe/stripe-react-native from v0.30 to v0.33, that's where the crashes started. I have upgraded to v0.35 in order to try if this version maybe already has the fix. I guess downgrading to v0.30 will definitely fix the problem, might also work with v0.32 as @alex-vasylchenko mentioned, i will try this later on today and let you know |
@BigPun86 @charliecruzan-stripe as I said in my previous message, if we disable Google Play, it works! I have the v0.31.1 and the app crashes too :( |
Yes, i understand that @nicolasdevienne :) It is definitely related to google pay... but that is not an option, our customers mostly use google pay |
I used to use I use only 3 stripe methods: And i get error after I have made a release with version |
yes me too, it's just to make a test and try to target the issue :) it can help to find the solution... |
Update: I'm not able to reproduce this on my Android 10 emulator so far in PaymentSheet. I am able to directly use Google Pay with the
message in logcat, so I'm wondering if that's a red herring. Are there any other messages in logcat from the crash for you all? It would be super useful to know that |
UPDATE: confirmed this is a google issue: see https://issuetracker.google.com/issues/316040978?pli=1 and stripe/stripe-android#7707 |
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
Hi All, I am facing same issue, app crashes when calling presentPaymentSheet for android v14. It works as long as I test it in emualtor. When I package it as an APK and run it on Android phone, it crashes on presentPaymentSheet page. Any help would be appreciated. This is my package.json configuration |
I found solution for this issue. Before we call presentPaymentSheet, we need to initialize stripe. (initStripe). This was the missing piece. when I added initStripe logic, presentPaymentSheet is working fine as expected. Thank you. |
Describe the bug
Since this week we are experiencing for our android users that their app is crashing when triggering presentPaymentSheet. We have figured out that the error only happens for users which uses android devices with android v10.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
No crash
Screenshots
N/A
Smartphone:
Android build.gradle:
Crashlytics - Stack trace
Application: ******
Platform: android
Version: 1.2.1 (46)
Issue: f33619d8a962919287c386db9f0d42dd
Session: 657B2DCA025700014EEB25210E5E4FC9_DNE_0_v2
Date: Thu Dec 14 2023 17:31:40 GMT+0100 (Mitteleuropäische Normalzeit)
..............
The text was updated successfully, but these errors were encountered: