-
Notifications
You must be signed in to change notification settings - Fork 217
Prevent Stripe API calls after detecting the API keys are not valid (401 response from API) #4323
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
10fc910
Add transient to prevent api calls after getting a 401 response
diegocurbelo 1063336
Update includes/class-wc-stripe-api.php
diegocurbelo 5a11e7c
Update error response to empty json
diegocurbelo 4f674ab
Remove invalid transient when saving new keys
diegocurbelo 7ef8df3
Refactored to use get_option/update_option for concistency with how w…
diegocurbelo f90e45e
Update code comments
diegocurbelo 1c7c8f5
Update account not connected notification message
diegocurbelo 47b42d2
Show account as disconnected if the account data is not valid
diegocurbelo 24ea6ea
Refactor 401 response to be null (needed for the Configure connection…
diegocurbelo 9740ff3
Merge branch 'develop' into fix/handle-stripe-api-401-errors
diegocurbelo 9666dcf
Clear account cache after detecting a 401 response
diegocurbelo cd43fc9
Add tests
diegocurbelo 4d288fc
Simplify option keys in test
diegocurbelo 52048d9
Fix success response mock
diegocurbelo 13e6401
Add changelo entry
diegocurbelo ff5d7eb
Apply suggestions from code review
diegocurbelo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.