#ajay-terminal

1 messages · Page 1 of 1 (latest)

timber harbor
#

Hi ajay, the previous location will be deleted if the same device is added to the new location.

tiny kiln
#

its not getting deleted
I have checked

#

I see 2 locations
but reader from 1st location gets deleted and added to 2nd location

timber harbor
#

can you help me understand a bit more about the problem you are facing? perhaps you can describe the goal that you want to achieve.

tiny kiln
#

I am storing device details to our side also like name, device id, serial no
if we try create new device details but the terminal is same at stripe there are 2 locations and 1 terminal
but at our database there are 2
so depending on that we need delete 1st location from our database as well as from delete stripe location too

#

or just warn user that device is already registered with stripe
and before add it remove from another location and add again

#

but at backend stripe automatically do it like create new location, remove terminal from 1st location, add terminal to 2nd location

timber harbor
#

So let me summarize, you have 1 terminal to be used in 2 locations. So you want to update the location data in your DB when it is deployed to another location?

tiny kiln
#

yes
or stop user to register same device to another location

timber harbor
#

How do you register the device?

tiny kiln
timber harbor
#

Hi ajay, how about this. when you register a reader to another location, use the readers.list API to retrieve a list of reader with location param expanded. Then from the reader list you will know if the location of interest has already associated with a reader.

tiny kiln
#

consider its different location, stripe adding as new location and setup same device to new location

i am not getting device
Reader ID
Serial number
until that device register and its response

timber harbor
tiny kiln
#

yes I know
but I wont receive these till I hit api register reader

timber harbor
#

Can you consider using other properties? such as Label?

tiny kiln
#

ok I will find out something else then
thank you for help