-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Additional network error handling for Square Terminal
Catch requests.exceptions.RequestException in more places where calls to Square take place. There was some confusion over the "Cancel terminal checkout" API call. I had assumed that if the status of the request did not permit cancelling (eg. if it had already completed) then the API call would simply return the TerminalCheckout unchanged. In fact it returns an error, code 'BAD_REQUEST'. Spot this and retry using "Get terminal checkout". Closes #255, #262, #263 on github.
- Loading branch information
Showing
1 changed file
with
78 additions
and
9 deletions.
There are no files selected for viewing
This file contains 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