Missing Amperstand in URL
frank.sposaro - January 20, 2009 - 22:13
| Project: | UC Google Checkout |
| Version: | 5.x-1.5 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | frank.sposaro |
| Status: | won't fix |
Description
Hello,
I am experiencing an issue when the google checkout button is pressed on my site.
Turns out that there is a missing amperstand in the URL that causes the transaction to fail.
If I manually add it, then I am properly directed to google checkout.
Here is a link to people that are having the same issue on with different CMS
http://groups.google.com/group/google-checkout-api-troubleshooting/brows...
Any help or word on this would be great. I also shot google an e-mail and will post an results I come acrossed.

#1
Hello,
I found a patch for this issue if you would like to use it.
Insert
if (strpos($redirect, "shoppingcartshoppingcart") !== false)
{
$redirect = str_replace("shoppingcartshoppingcart","shoppingcart&shoppingcart",$redirect);
}
at line 703 in the module file.
Thanks.
#2
Since this is really a problem with Google's servers, and I think it's one that they will fix before too long, I don't want to change my code to take care of it. However, people do need to be able to use it in the meantime, so I've made a proper patch for them to use. It's a little different, since the if() statement isn't really needed in this case.