You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the app will continue to init and calls to discoverReaders() will execute but not update discoveredReaders, more concerning the error payload from discoverReaders does not populate when there's no connectionToken in use.
Also it looks like there's logic in the iOS app about using the correct key that's surpassed so looks like we want to make sure we're surfacing that as well (thanks @jil-stripe#76)
The text was updated successfully, but these errors were encountered:
going to raise the priority on this one as it's a pretty frustrating failure mode. The SDK will continue to try to perform actions and often just silently fail if it cannot reach the backend or has an invalid connection token.
I worry fundamentally about having fetchConnectionToken fire on app mount a this seems fairly unexpected and I'm unsure how we'd properly wire in error surfacing around this. Can we refactor the SDK to be explicitly initialized by the user so they can delay configuring it without having to guard against mounting anything nested in <StripeTerminal/>
Steps to repro:
I think we need error handling logic in
stripe-terminal-react-native/src/components/StripeTerminalProvider.tsx
Lines 62 to 66 in f5e55a9
Currently the app will continue to init and calls to
discoverReaders()
will execute but not updatediscoveredReaders
, more concerning theerror
payload fromdiscoverReaders
does not populate when there's no connectionToken in use.Also it looks like there's logic in the iOS app about using the correct key that's surpassed so looks like we want to make sure we're surfacing that as well (thanks @jil-stripe #76)
The text was updated successfully, but these errors were encountered: