Hi there,
I'd like to provide the ability to commit taxes in Avalara when an order is captured. For this, we turned off "Commit taxes" on the Avalara connector and are now looking into ways to commit on capture (the reason we need this is that the order value may have been changed by the ERP between order creation and capture). The way I see it, I would need to pieces of extensibility to make this work:
1. An OnAfterCapture subscriber fired from the order when Capture is called
2. The ability to instantiate the AvalaraProvider with the appropriate backend settings and call its CommitTaxes method. (Not sure if this will work without writing our own commit since the order may have changed and we may need to send more that just a commit=true flag.
How would I go about this? I might be able to pull off #2 with custom code, but it'll be useless without the subscriber from #1
Ideas and thoughts are welcome!
Thanks,
Imar