Page 1 of 1
Problems Integrating an Avalara Tax Provider
Posted: Thu Nov 13, 2008 8:47 pm
by beisenman
I have modified a Avalara Tax Web SVC Custom provider originally provided by a Brian Sutherland I think. I have finally gotten it to register in the able commerce site but it appears not to be used in the tax calculation. I would hope that someone might enlighten me as to how to get it to calculate the tax for an order basket. Additionally, I wold like to know why I am getting an error in the Log4Net.dll when I clear baskets and such. I would assume that there is a method such as recalculate which calls the dll to maybe execute the cancel method or something. However, I can see why as they are the exact same version.
Re: Problems Integrating an Avalara Tax Provider
Posted: Fri Nov 14, 2008 12:33 pm
by nickc
I'd avoid relying too much on that code sample. Start by creating a new project, implementing the base provider class, from which VS should generate some stubs - put some simple code and breakpoints in those, compile your dll, and drop into Able's bin folder - then run in debugger so you can see at what points your code is accessed (basically every time Basket.Calculate is called). Then build out those stub methods with your Avalara integration.
The log4net problem is Avalara's - the workaround for now is to drop the .net 1.1 version that is the dependency for their dll into the GAC.
You'll also need to decide how to deal with edits done to orders after payment capture - Able only calls the provider during basket operations - see
viewtopic.php?f=42&t=8467
Cheers,