#santhosh-kumar-r_api
1 messages ¡ Page 1 of 1 (latest)
đ 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.
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
Hey there, taking a look
It looks like the empty result would be expected on successful disconnect, since the only contents of the return type can be an error:
ref: https://stripe.dev/stripe-terminal-react-native/api-reference/interfaces/StripeTerminalSdkType.html#disconnectreader
example: https://github.com/stripe/stripe-terminal-react-native/blob/5b1d7e4cd45b72a0b8c47841490f644d58037e33/src/functions.ts#L148
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
simulated
ok
We have one issue where stripe sdk does not creating payment intent after long hours (more than 2hrs after initialization).
We are using bbpos wisepas3
so can we get the callbacks triggered in this case ?
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?
yes. sure
We have setup stripe terminal sdks in this app.
https://drive.google.com/file/d/1FZuF5zWtpOOHu_fef56AUKSte8qvpzoo/view?usp=drive_link
it is working as expected within 2 hrs.
After that, it can not able to create payment from the SDK. Stuck at the same stage as in video
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
Yes, you'll need to isolate actual errors occurring here, ideally, that video doesn't really reveal much beyond your app not functioning