-
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
[Tap To Pay] Reader has been disconnected unexpectedly on Android devices #693
Comments
Hi, |
Hi @nazli-stripe , I can't find the account and serial numbers when the payment is cancelled. The latest has id: pi_3PF7CwEcr8OExvfT1zxs98vO Attached bugfender screen shot Hope that helps. Thanks. |
Same problem here on Samsung Tab Active 3, running Android 13. |
This appears to be a potential issue with our native Android SDK, we are investigating internally. Will update this ticket with new information |
Hi @nazli-stripe , This is one of the latest instances where there is a serial number it it helps: |
Here's another serial number: |
Any news? @nazli-stripe |
Hello, @nazli-stripe , |
We are also experiencing this. The only solution so far has been to disconnect and reconnect the reader every time we want to initiate Tap to Pay. It looks like the library is unable to monitor the connection state of the reader in background and auto reconnect properly. |
hey sorry for the radio silence on this one, we just released beta.23 with upgrades to the native Android SDK. Do you run into the issue there as well? |
@tzecheng did updating to beta.22 help with the occurrences of the issue? |
Hi @nazli-stripe , Problem still happening in v0.0.1-beta.22, as mentioned in an earlier chat #693 (comment) Will be testing with v0.0.1-beta.23 next week. Thanks. |
Hi @nazli-stripe , We updated to v0.0.1-beta.23, but unfortunately the error is still there.
Latest error: |
Hi @KillianLarcher , @nabilfreeman , cc: @nazli-stripe |
@tzecheng the solution for us has been to disconnect the reader after every success/failure and make sure we are connecting from scratch whenever the user initiates the payment flow. I mentioned this above in a comment a few months back - it seems that there are some issues with the library maintaining a synchronised connection state with the OS. This is not necessary on iOS, but the Android side has a lot of Tap to Pay bugs and a degraded experience. See #809 for more problems Worth understanding that this library is a wrapper for closed-source iOS and Android SDKs, which are often several versions ahead of the pinned version here, so it’s very difficult for us to debug. |
Hi @nazli-stripe , We did some further testing with v0.0.1-beta.23 and this is our observation:
Our guess is that in our case, when coming from background or when network is reconnecting, the reader takes time to connect, but the payment intent has timed out. |
Describe the bug
After putting the Android app in the background for some time, then reopening the app to do the first Tap to Pay transaction causes the following issue happens:
It happened after after creating the Payment Intent by the
createPaymentIntent
function and before thecollectingPaymentMethod
function executes. Then thecollectingPaymentMethod
function throws this error, which causes the transaction to fail:To Reproduce
Steps to reproduce the behavior:
Expected behavior
The Reader should not be disconnected unexpectedly when doing the transaction.
Stripe Terminal React Native SDK version
^0.0.1-beta.17
^0.0.1-beta.18
Smartphone (please complete the following information):
The text was updated successfully, but these errors were encountered: