forked from vinsol-spree-contrib/spree_taxjar
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The previous implementation just let the error bubble up. This means we might loose a sale due to sales tax. Most stores would rather just pay the sales tax out-of-pocket in these rare events over loosing a sale. It might be worth making this an option if there are stores that prefer to loose the sale but I'll leave it to those stores to implement that. The system basically treats it as if the order it outside the nexus (no tax collected) if it cannot contact the API. To ensure accurate reporting it leaves a log message that is prefixed with "Taxjar Failure". THe logs should be searched before reporting sales tax to see if there are any of these. If a more active notification is desired a log service can be used to look for that string and send an e-mail to the right person when it happens.
- Loading branch information
Showing
2 changed files
with
45 additions
and
0 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
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