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

Feature request - allow customization of network failure behavior #181

Open
tmtrademarked opened this issue Jun 13, 2023 · 0 comments
Open

Comments

@tmtrademarked
Copy link
Contributor

Currently, in AvalaraTransaction#post_order/return_to_avalara, the method handles an error response by returning totalTax: 0.0. It would be great if there were a way for stores to customize this behavior. Perhaps having a configurable class like AvalaraErrorHandler which would be given the response object would make this simpler? That way, stores could replace the error handler with their own implementation as needed to create more advanced behaviors (like hooking into error reporting tools or raising errors or even implementing retries, etc).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant