dhonig
06/02/2023, 4:48 PMkennyadsl
dhonig
06/02/2023, 5:43 PMdhonig
06/02/2023, 5:43 PMwaiting_for_dev
06/05/2023, 8:09 AMZach Feldman
06/05/2023, 3:21 PMavalara_capture
and avalara_capture_finalize
called on each instance to re-send. This is due to various issues, us being down, Avalara being down, validation issues with an order maybe (just a theory), etc. It seems the gem's sending is only best effort.
If there was a new column added for actually checking if an order made it over after transmission to the avalara_transaction
table, something like a captured
boolean, and a Rake task you could run daily to check for orders that didn't make it and re-send them, that would be incredibly helpful. I think we really have to check after sending with a subsequent API call looking for the order in Avalara and then mark captured
as true only if we double checked with Avalara after the fact. We're going to have to build something like this ourselves in the next few months if it isn't a part of the lib.
Thanks for your consideration!Tom Wilson
06/13/2023, 2:02 PMavalara_transaction
class has hardcoded behavior which returns totalTax: 0.0
if the network response is an error. It might be nice to make this behavior configurable with a simple override or hook. For example, in our application, we wanted to monkey patch this so that we could add error reporting when this occurred to monitor it. That meant we had to patch the whole post_order_to_avalara
method, which is obviously slightly more invasive!Tom Wilson
06/13/2023, 2:02 PMkennyadsl
kennyadsl
Tom Wilson
06/13/2023, 2:04 PMZach Feldman
06/13/2023, 2:15 PM