#andrew_rundoo-terminal-connections
1 messages · Page 1 of 1 (latest)
Thank you!
When you say "connect" I assume you want the computer closest to the POS reader to be able to display charge data. Is that correct?
Yeah basically I just want to make sure that given 3 computers each with a reader right next to them that the computer a clerk is working on interacts with the closest reader
Or put differently, it'd be a really bad UX if the clerk at one of the computers ends up triggering a payment flow or showing items on a reader that is on the other end of the counter as opposed to the one right next to it
We associate readers with locations in Stripe, so I imagine the discover method will return just the readers for a given location but I need to be able to have the web application control the correct reader within that location
Hello, looking in to this. So are you already doing this but having trouble differentiating between the readers that come back in the list from your discoverReaders call?
We are in the middle of trying to build the integration into our web app and having the realization that discoverReaders may very well just return all readers for that location and we have no idea which is the one that is closest or should map to this computer
The discoverReaders call will return all the readers from the location but you should still be able to filter for the one you want based on the serial_number or label etc and then call connectReader on the ID of the reader you like
gotcha
Would it be feasible to have some kind of config on your webapp that tells machine A to connect to reader X in the list and for machine B to connect to reader Y?
yeah it sounds like we'll need to have some flow for the clerk initially selecting which reader to use and then cache something in local storage (prob the serial number) to auto reconnect from then on
From our doc it looks like we don't have anything built in to this and we suggest letting the user select their reader or having a way to select it yourself https://stripe.com/docs/terminal/fleet/locations#smart-reader-discovery
okay thanks for the clarity
Of course, any further questions on that at the moment?