GoogleCheckout error after upgrading to 7.0.5

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
plugables
Captain (CAPT)
Captain (CAPT)
Posts: 276
Joined: Sat Aug 15, 2009 4:04 am
Contact:

GoogleCheckout error after upgrading to 7.0.5

Post by plugables » Wed Nov 24, 2010 7:31 am

After upgrading to 7.0.5 GoogleCheckout has started to showing problem in shipping rates calculation. Apparently it fails to calculate the shipping rates which results in default rate being shown to the customer. The GoogleCheckout debug log has a lot of error log messages like this

Code: Select all

System.ArgumentNullException: Value cannot be null.
Parameter name: countryCode
   at CommerceBuilder.Shipping.ShipZoneDataSource.LoadForAddress(String countryCode, Int32 provinceId, String postalCode)
   at CommerceBuilder.Orders.BasketShipment.get_ShipZones()
   at CommerceBuilder.Shipping.ShipMethodDataSource.LoadForShipment(IShipment shipment)
   at CommerceBuilder.Orders.BasketShipment.get_ApplicableShipMethods()
   at CommerceBuilder.Orders.BasketShipment.IsShipMethodApplicable(ShipMethod shipMeth)
   at CommerceBuilder.Payments.Providers.GoogleCheckout.AC.AcCallbackRules.GetShippingResult(String ShipMethodName, Order ThisOrder, AnonymousAddress Address)
   at CommerceBuilder.Payments.Providers.GoogleCheckout.MerchantCalculation.CallbackProcessor.Process(String CallbackXML)
   at MerchantCalc.ProcessRequest(HttpContext context)
It appears that in 7.0.5 the code loading ship-zones for an address has been updated and it now throws an exception when country code is not valid. Previously it did not throw an exception and it probably returned an empty collection. As a result previously GoogleCheckout considered the shipping method in question as in-applicable for the given address. However with the new code, because an exception is thrown, the shipping calculation code to fails and GoogleCheckout considers the default ship rate as the rate for the given shipping method.

Someone from Able needs to have a look at this and provide a workaround or patch.

plugables
Captain (CAPT)
Captain (CAPT)
Posts: 276
Joined: Sat Aug 15, 2009 4:04 am
Contact:

Re: GoogleCheckout error after upgrading to 7.0.5

Post by plugables » Mon Nov 29, 2010 10:31 am

I suspect this viewtopic.php?f=42&t=14682
and this viewtopic.php?f=42&t=14561
reported by other users are also because of the same issue discussed above.
Someone from Able needs to have a look at this.

Post Reply