-
Notifications
You must be signed in to change notification settings - Fork 50
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
collectPaymentMethod hangs forever and future calls to it fail with time out error - calling disconnectReader
after this also hangs forever
#664
Comments
disconnect
after this also hangs forever
disconnect
after this also hangs foreverdisconnectReader
after this also hangs forever
I added a test, where instead of server side, I createPaymentIntent on client, and this also hangs. |
hey @Noitidart are you still running into this issue on the latest SDK? |
Thanks Nazli, I haven't upgraded yet, I'm not yet sure if it is due to the Stripe library. I'm on version beta.14 do you think I should try updating? Was there changes that could affect this? |
@lemaire31 do you think this problem is fixed in v0.0.1-beta.19? |
@Noitidart in general we recommend testing things with the latest SDK version to pick up the latest native SDK upgrades. If you are still running into this issue and if you can provide device serial numbers I can check our logs. Is this issue happening on a specific device, or across all devices? |
Thanks @nazli-stripe - it's happening across all devices. All MPOS and also BBPOS. I will do a native upgrade and test and let you know please. Will need some time please, maybe 2 months. |
I am no longer experiencing this |
Thanks @lemaire31 - were you experiencing this in beta14? Did you stop experiencing this after upgrading to a certain version? |
hey @Noitidart are you still experiencing this issue? |
Thanks very much for checking up. Yes I am facing it, however I am still using I need to upgrade but been scared. Will try that out in the next month or so please. |
Describe the bug
I'm on Android using M2 reader.
Rarely, maybe once a day or two days, I notice that when I call
collectPaymentMethod
it hangs indeterminately, I have tried up to 5min. If I then callcancelCollectPaymentMethod
,collectPaymentMethod
resolves with this response:Sometimes the
onDidRequestReaderInput
fires with{"input": ["swipeCard", "insertCard", "tapCard"]}
but putting card or phone to reader is not taking tap, and neither does insert card work.If I try to call
disconnect
to disconnect the current reader, thedisconnectReader
call also hangs indefinitely.Does anyone have any hints on what can be happening?
To Reproduce
I'm not sure how to reproduce, I just leave my app and terminal on forever and eventually this happens.
Expected behavior
collectPaymentMethod
should not hang. And if it does returnUSER_ERROR.CARD_READER_TIMED_OUT
, future calls tocollectPaymentMethod
should work.Screenshots
If applicable, add screenshots to help explain your problem.
Stripe Terminal React Native SDK version
Smartphone (please complete the following information):
Additional context
I'm using M2 readers.
I have spent 4 days on this, I'm sorry I don't have additional context. It's very odd. I have tried extensive logging but can't find any hints.
The text was updated successfully, but these errors were encountered: