Google checkout tax problem - UK store - bug report?

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
bratta
Ensign (ENS)
Ensign (ENS)
Posts: 3
Joined: Wed Apr 23, 2008 9:27 pm

Google checkout tax problem - UK store - bug report?

Post by bratta » Wed Apr 23, 2008 9:45 pm

First I want to say that I have been heavily customizing an AbleCommerce site for the last month and I am very happy with the product.

I am currently trying to integrate Google checkout and though most things are (after a bit of hacking) working fine I do have one issue I can't seem to solve;

The tax is just not getting calculated. Or more specifically it's not shown on the google page.

I have a UK based site so I have to send my basket with currency "GBP", I had to manually set that in the GoogleCheckoutButton.ascx.cs because it defaults to "USD" (even though that's not even an option on my site) to get anything to work.

When trying to figure out why the taxes wasn't working I noticed that the xml returned to google from "MerchantCalc.ashx" says:

<total-tax currency="USD">26.08</total-tax>

Checking the called code in reflector shows me:

(method: CommerceBuilder.Payments.Providers.GoogleCheckout.MerchantCalculation.CallbackProcessor.Process)

if (callback.calculate.tax)
{
result.totaltax = new ResultTotaltax();
result.totaltax.currency = "USD";
result.totaltax.Value = (decimal) this._Rules.GetTaxResult(thisOrder, address, (result.shippingrate != null) ? result.shippingrate.Value : 0M);
}

(this is the same for all the figures returned from this method)

Man, isn't this typical of US made software ;)

I can't override that because I don't have the source-code but making my own version of that method and using the currency of the items returned from google fixed it. It's nasty though and I don't really like duplicating code this way, it also makes it a bit slower and there's a higher chance of google timing out.

This might get lost but a couple of different questions/observations:
1. I think it would be good feature/option to turn off shipping (ie: everything related to shipping disappears). I don't think I am the only one selling services/digital content only.

P.S: My eyesight is perfect and it took me something like a gazilion times to register on the forum (I actually had to use two different workstations because I got locked out on the first).

P.P.S: I have seen the forum post about UK taxes (VAT) not working - but that only relates to some specific cases, and in my case everything but this works fine.

Cheers,

-Thomas-

User avatar
sohaib
Developer
Developer
Posts: 1079
Joined: Fri Jan 23, 2004 1:38 am

Re: Google checkout tax problem - UK store - bug report?

Post by sohaib » Thu May 08, 2008 10:11 am

This has been entered in our bug database. It will be talcked soon.
If you have any further information to post please post it here.
Thanks.

Post Reply