GoogleCheckout error after upgrading to 7.0.5
Posted: 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
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.
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)
Someone from Able needs to have a look at this and provide a workaround or patch.