#Santosh Kumar

1 messages · Page 1 of 1 (latest)

spring pathBOT
inner kelp
#

Which Doc are you following and which device?

tired brook
#

this one is the reference

#

physical device is m2

#

but I am also trying to connect with simulated reader that I a registered on dashboard

inner kelp
#

Okie, then on which specific step you are struggling with?

tired brook
#

I fetch the reader list

#

and trying to setup a connection with selected reader at that time i'm getting error

inner kelp
#

In which step, and what error do you have?

tired brook
#

code
:
"reader_error"
message
:
"Could not communicate with the Reader. Please make sure your reader is online and on the same network as your device. See https://support.stripe.com/question

inner kelp
#

Which flow are you in? Server driven? or JS?

tired brook
#

both

#

getting reader list from server side

#

and trying to setup a connection by frontend js side

inner kelp
#

So this "Javascript", not Server Driven?

tired brook
#

I think nop

inner kelp
#

Okie, then is that terminal.discoverReaders which returns the error?

tired brook
#

discoverReaders method working fine

#

how the physical reader works ?

#

?

#

can you please share the steps

inner kelp
#

No I am just checking step by step

#

So discoverReaders works but connectReader doesn't?

#

For simulated reader

tired brook
#

I am not using discoverReaders method

#

I am getting reader information from by server side

inner kelp
#

That sounds like the "Server-driven" flow indeed

spring pathBOT
tired brook
#

yes

#

so there is no need to setup a connection with reader?

coral laurel
#

No you connect to the reader via the API, as opposed to connecting directly to it

tired brook
#

so is it fine or what ?

coral laurel
#

Is what 'fine'?

tired brook
#

means if i connect to the reader via api

#

after that direactly use that readerId for paymentIntent and payment process ?

coral laurel
#

You don't connect to the reader no. That step is redundant in the server-driven flow. Instead you pass the tmr_xxx of the Reader you're using to the Terminal functions

tired brook
#

ok