-
Notifications
You must be signed in to change notification settings - Fork 32
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
onSubmit not called after an error (Android only) #365
Comments
This only seems to be an issue on a Debug build. I just built a Release variant and I'm unable to reproduce it there 🤔 |
Hey @gunnartorfis Sometimes I see that breakpoints are interfering RN UI thread on Android. Could this be the case? |
following. Experiencing this on Android and iOS, after payment fail, calling component.hide(false,{message}). Observing infinite spinner after 2nd submit. onSubmit only called once for the first try but never called on second try. Expo 49 "expo": "~49.0.6", Adyen/react-native 2.0.0-beta-2 "@adyen/react-native": "^2.0.0-beta.2", |
Hey @MisterMaroki Are you using Sessions or Advanced flow ? I see what could be a problem .. |
I am using advanced flow, event based. Using the start(‘drop-in’) method |
I solved it by using expo router to dismount and remount the screen as luckily the payment is made on a simple standalone screen. it’s a hack solution but if anyone else faces this you’ll have to remount to screen and call the start(‘drop in’) func in a setTimeout with 200ms wait. Waiting on a real solution |
Describe the bug
When attempting to pay using the Card Component and payments fails, when the user tries to pay for the second time with a different card details, the native spinner shows up and is infinite. None of onSubmit, onError, onAdditionalDetails is called.
This is only happening on Android, not iOS or the web for us.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
We should also get an error or a success after the second attempt.
Smartphone (please complete the following information):
Device: Pixel Emulator
OS: Android
Version 32.1.14.0
The text was updated successfully, but these errors were encountered: