#Ap369
1 messages · Page 1 of 1 (latest)
Which SDK are you using?
stripe-terminal-react-native-sdk
I found cancelDiscovering in useStripeTerminal. Should I call that method after arbitary time say 10 sec to cancel previous discoverReader call or there is better way to handle this
Thanks for sharing! Checking it now
Hi @twin pasture yes you can call cancelDiscovering() to cancel reader discovery.
when should I can this method? @narrow trench
it's up to you, you can call it when you want cancel discovering.
okay thanks and I found that we can also pass a timeout to discovery config but can't find syntax for it. https://github.com/stripe/stripe-terminal-ios/issues/177#issuecomment-1297247891 Can you help me with finding it?
although this ios sdk, I think there should be similar way for react native sdk
I don't see there's a param for timeout https://stripe.dev/stripe-terminal-react-native/api-reference/index.html#DiscoverReadersParams
Documentation for @stripe/stripe-terminal-react-native
ok thanks
It's available in the iOS SDK though (https://stripe.dev/stripe-terminal-ios/docs/Classes/SCPDiscoveryConfiguration.html)
Perhaps you want to raise a feature request https://github.com/stripe/stripe-terminal-react-native