Skip to content
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

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

Open
khoahtran-kms opened this issue Mar 27, 2024 · 2 comments
Open

Comments

@khoahtran-kms
Copy link

khoahtran-kms commented Mar 27, 2024

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

@nazli-stripe
Copy link
Collaborator

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

@tuantran-playon
Copy link

tuantran-playon commented Apr 5, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants