#santhosh-kumar-r_api

1 messages ¡ Page 1 of 1 (latest)

tawdry narwhalBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1415325411029680229

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

unborn raft
#

My Environment Setup

"@stripe/stripe-terminal-react-native": "^0.0.1-beta.24",
#

i am using "usb" for discovered readers
private _discoveryMethod: Reader.DiscoveryMethod = 'usb';
and connected to stripe sdk

#

i tried to turn off internet too. still i am not getting callbacks triggered from the SDK

spice quarry
#

Hey there, taking a look

spice quarry
#

You seem to be describing two different things: using simulated reader and triggering disconnect or actual disconnects of a USB reader.

#

My suspicion for the simulated reader is that you might not get disconnect events when you explicitly trigger that yourself, but i'm not certain

#

You shoul be getting events for your USB reader though, if you eg unplug it

unborn raft
#

so can we get the callbacks triggered in this case ?

spice quarry
#

I don't understand what you mean, can you explain more or provide examples? Are you encountering errors during payment in these cases, or something else is happening?

unborn raft
#

yes. sure

#

so thats why we are implementing reconnect logic on the callback handlers

#

but it is not triggering in the simulated environment. will test this in real cabinet

tawdry narwhalBOT
spice quarry
#

Yes, you'll need to isolate actual errors occurring here, ideally, that video doesn't really reveal much beyond your app not functioning