#milfromoz
1 messages · Page 1 of 1 (latest)
Hi there 👋 do you have a question?
How would you associate a bbpos terminal to a pc. I have been considering a permanent cookie set with a unique code that is used by our application to connect to stripe.
When you say "associate" do you mean that you want each Terminal reader to be able to distinguish it's connection between multiple PCs on a network? Can you elaborate a bit more?
Yes
By assigning the terminal to a pc the logged in admin user will be linked to the terminal that is next to the pc.
I think you would already be authenticating with one particular reader whenever you create a Connection Token, so the added step of having a cookie seems unnecessary to me
We have multiple readers and pcs in same location. Was thinking of using the ip address stored in a cookie.
The issue is how to identify a specific terminal when running the app from one of many pcs.
Hmmm, I would think that you'd have to build a wrapper around the Terminal code (or maybe an auxiliary function would be better) that can get the computer's IP address and pick the right device from the array of Terminal readers when calling terminal.discoverReaders()
If the above is not helpful, can you give a step-by-step example of the workflow, including steps where the person operating the reader takes action?
Admin user logs into the app on a specific pc that has a terminal next it. The app reads a cookie to identify the pc. On checkout the app looks up the terminalid associated with the pc.
Then the above should work. Do you have any specific questions about implementation?
If no security concerns then we are good to go. Thanks