#piyushjain-terminal

1 messages · Page 1 of 1 (latest)

little quail
#

hi! can you share more context on the question?

placid hare
#

yes actually i have created location

#

now i want to register device

#

on that location

#

but i dont have physical device

#

i want to test

little quail
#

good question, let me look

placid hare
#

see this

#

what should be registroationCode for Testing

#

any update?

little quail
#

nope

#

when I know I'll reply

placid hare
#

okay thaks i am waiting

little quail
#

I believe it can be anything, when you're using the simulated reader.

#

so just pass "foobar" for example and see if it works.

placid hare
#

ok let me try

#

Invalid param: registration_code, found: foobar, Invalid registration code tokens [foobar]; request-id: req_sLRIEcojU64wne"

#

throwing error

little quail
#

hmm, I really don't know then

#

sorry! My guess is you don't even need to register it, that's only for real readers

#

AFAIK you can always discover and connect to the simulated reader, you don't have to register it at all. That's likely the answer.

placid hare
#

okay. got it. but the problem is i am implementing register Device api.

#

so i am wondering how to test api in case if it success or fail.

#

it seems i will not able to test sucess scenario

#

but without test how i can insure it will work in production

little quail
#

good question!

#

not sure you can without a physical device. For now I'd just wrap the code in a try/catch and report the error if one happens

placid hare
#

Thanks