stripe / stripe-terminal-android

Stripe Terminal Android SDK
https://stripe.dev/stripe-terminal-android/
Other
94 stars 46 forks source link

Encountered 'Transaction timed out' when calling collectPaymentMethod. #419

Closed chance-yang closed 8 months ago

chance-yang commented 10 months ago

Summary

Encountered 'Transaction timed out' when calling collectPaymentMethod. Use Bluetooth Connection. We have encountered this error many times. After encountering the problem, we must reset the Stripe card reader to resolve it.

  1. STRM26229003642

    image
  2. STRM26229004157

    image
  3. STRM26214135984

    image

Code to reproduce

Android version

Android 13

Impacted devices (Android devices or readers)

Galaxy Tab A7 Lite

SDK version

com.stripe:stripeterminal:3.0.0-b6

Other information

chance-yang commented 10 months ago
image

Hello, we have encountered this issue, as mentioned in the above log. SN: STRM26229003626

bperez-stripe commented 9 months ago

@chance-yang Have you seen this issue since updating to a non beta version of 3.x?

chance-yang commented 9 months ago

Hello, thank you for your response. We are currently testing the Stripe 3.2.1 version and have not yet released it widely. This issue is sporadic, and we have not been able to consistently reproduce it. We have also been tracking this issue on the 3.x versions. We hope you can find the root cause of the problem. Otherwise, it remains a potential risk for us, as we must restart the card reader and the application to recover whenever an issue occurs.

ugochukwu-stripe commented 9 months ago

@chance-yang, I was looking at some of the logs for the reader STRM26229003626, and don't see anything out of the norm, I noticed a timeout on January 25th during collect operation that occurred after a reader disconnect event, which is expected as attempts to communicate with the reader would timeout after a disconnect. Your application would get a ReaderListener::onUnexpectedDisconnect callback when this occurs, where you can initiate a reconnect; you could also look into our auto-reconnect feature [^1], if you haven't already.

[^1]: Stripe Terminal auto reconnect

dmatthews-stripe commented 8 months ago

Hi @chance-yang, we will be closing this ticket due to inactivity. If you are still experiencing this issue, please feel free to open a new ticket.