#wilcalaf

1 messages · Page 1 of 1 (latest)

placid spruceBOT
low badge
#

👋 happy to help

empty gust
#

hey thanks - so im trying to differentiate between a physical reader and a tap to pay since i need to support both

#

is COTS_DEVICE the device type im looking for?

placid spruceBOT
#

wilcalaf-account-support

empty gust
#

like if its COTS_DEVICE is tap to pay - everything else is reader

placid spruceBOT
#

wilcalaf

pliant pond
#

In what step are you looking for this exactly?

empty gust
#

Im looking at the Connect to reader step in the manual

#

however in my app i need to support both regular phisical card readers and alsl tap to pay

#

so i need to differentiate them on the callbacks

#

i looked at the DeviceType but it is not clear which one is the correct

#

it seems to be DeviceType.COTS_DEVICE but cant say for sure

pliant pond
#

Could you please share the list of readers that you receive in onUpdateDiscoveredReaders?

placid spruceBOT
empty gust
#

How to share it?

stray karma
#

Can you print out the IDs and send the text of that list here?

empty gust
#

[com.stripe.stripeterminal.external.models.Reader@7352aa6]

#

I just want to know if theres a way to know if the "Reader" Object is tap to pay or just another type of reader

#

to show the user if the current "reader" is actually a phisical one or just tap to pay

#

since when connecting to a reader or to tap to pay you will always get an object of type "Reader" regardlress

stray karma
#

Ah gotcha, apologies the server got bery busy so it has been taking me a bit to catch up. Looking in to that and will get back to you.

empty gust
#

i think the answer is if Reader.deviceType == DeviceType.COTS_DEVICE - but i cant say for sure since it doesnt seem documented and im on the simulated version

stray karma
#

It is looking like that is the way to check for me as well but I am having trouble confirming. I will double check with my colleagues and get back to you