Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

connection token error handling #86

Merged
merged 6 commits into from
Feb 23, 2022

Conversation

arekkubaczkowski
Copy link
Contributor

@arekkubaczkowski arekkubaczkowski commented Feb 21, 2022

Add error handling for tokenProvider method.

Moreover, the error has been passed to the setTokenProvider completion block so if user will try to run any method that needs a connection token it will throw a proper error message.

Additionally, to give a more control of initializing the library, initialize method now must be called manually and independently of StripeTerminalProvider component.

closes #26
closes #35

Screenshot 2022-02-21 at 10 49 19

Screenshot 2022-02-21 at 08 28 51

Simulator Screen Shot - iPhone 13 Pro - 2022-02-21 at 08 28 56

@arekkubaczkowski arekkubaczkowski merged commit 2e1d05c into main Feb 23, 2022
arekkubaczkowski added a commit to arekkubaczkowski/stripe-terminal-react-native that referenced this pull request Jun 29, 2022
* chore: connection token error handling

* chore: init module refactor

* handle init error

* chore: log error

* fix: ts errors

* fix: variable name
@nazli-stripe nazli-stripe deleted the fix/connection-token-error-handling branch September 6, 2024 20:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants