Developer forum

Forum » Development » Committing taxes when capturing an order

Committing taxes when capturing an order

Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

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


Replies

 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Bump. Any ideas?

 
Nicolai Pedersen
Reply

Hi Imar

Yes, we will get you this. Victor has send me a proposal for a solution, and he will get back with details.

BR Nicolai

 
Viktor Letavin
Reply
This post has been marked as an answer

Hi Imar,

I've created PBI # 31028 for your feature.

It includes new notification, minor tax api changes and order tax commit after cupture Subscriber example.

BR, VIktor.

Votes for this answer: 1

 

You must be logged in to post in the forum