stripe / stripe-terminal-react-native

React Native SDK for Stripe Terminal
https://stripe.com/docs/terminal/payments/setup-integration?terminal-sdk-platform=react-native
MIT License
108 stars 50 forks source link

Weird error when compatible reader connecting to location #610

Closed abdulmananqureshi closed 8 months ago

abdulmananqureshi commented 9 months ago

During initial testing, we successfully connected the reader (Samsung Galaxy A33) phone and were able to initiate payments. However, when we transitioned to using tablets/phablets from China, we encountered an error while establishing a connection to the reader. After searching for a few devices, we found a device that met the requirements listed.

Despite meeting the compatibility requirements, the connection attempt failed with an unexpected error message. Please provide further guidance on troubleshooting this issue.

{ code: 'UNEXPECTED_ERROR.UNEXPECTED_SDK_ERROR', message: "Contactless transaction failed java.lang.IllegalStateException: App Error: SERVER_ERROR 'An unknown error has occurred: java.lang.NoSuchMethodError: No static method reportErrorAsync$default(Lcom/stripe/sentry/http/ErrorReporter;Ljava/lang/Throwable;ZILjava/lang/Object;)V in class Lcom/stripe/sentry/http/ErrorReporter; or its super classes (declaration of 'com.stripe.sentry.http.ErrorReporter' appears in /data/app/~~564MMBgbQ0ntUjd22Hj66w==/com.pos-SpmCVwUvrJyttHHVM8ti2g==/base.apk!classes4.dex)'", }

IMG_0512

abdulmananqureshi commented 9 months ago

Here's a better description after updating the @stripe/stripe-terminal-react-native package to 0.0.1-beta.15

|ReactNativeJS 'connectionError', { code: 'UNEXPECTED_ERROR.UNEXPECTED_SDK_ERROR',
                              message: 'Failed to generate key pair.' }
gliu-stripe commented 8 months ago

Resolved in a support ticket thread