stripe-terminal-react-native icon indicating copy to clipboard operation
stripe-terminal-react-native copied to clipboard

The value of label field in given Reader.Type object is always null

Open khoahtran-kms opened this issue 10 months ago • 2 comments

Describe the bug

Currently, I'm using stripe-terminal-react-native in the app, and I want to display the label of Readers (both discoveredReaders and connectedReader). But I found that the label field in returned Reader.Type objects are always null.

To Reproduce

  • Create a reader with a label or Update the label of the existing reader
  • Discover and connect the reader with the app (get discoveredReaders and connectedReader by using useStripeTerminal)

Expected behavior

The returned Reader.Type objects include label fields with the right values

Stripe Terminal React Native SDK version

0.0.1-beta.15

Smartphone (please complete the following information):

  • Device: iPhone 12 Pro Max
  • OS: iOS 17.2

Additional context

Discord Dev Help: https://discord.com/channels/841573134531821608/841573134531821616/1222214362627051570

khoahtran-kms avatar Mar 27 '24 08:03 khoahtran-kms

hey @khoahtran-kms do you experience this when using our example or dev-app as well? I'm able to access reader labels on both https://github.com/stripe/stripe-terminal-react-native/blob/20b41d6c/dev-app/src/screens/DiscoverReadersScreen.tsx#L103-L110

nazli-stripe avatar Apr 02 '24 21:04 nazli-stripe

Hi @nazli-stripe, Yes, we get the same when using the example app with Stripe Terminal React Native SDK version 0.0.1-beta.17. We're using a Stripe Reader M2 for testing. image image

tuantran-playon avatar Apr 05 '24 15:04 tuantran-playon