According to the support forums, Google Checkout for Mobile devices is just a big fat phony.
Google Checkout displaying desktop version on mobile devices
-
14-01-2022 - |
Pergunta
The Google Checkout Mobile website says that "once you've integrated Google Checkout with your website, there's no additional work required to allow customers to buy from you using their mobile devices", but I'm not seeing this happening on either iOS or Android devices I'm testing. The desktop site comes up, which is workable, but not a very good UI on the small screen.
Since there's "no work required", I'm not quite sure how to start to debug this. Ideas?
I took some screenshots of what it looks like iOS 6 and Android ICS.
Solução
Outras dicas
I'm just going to go out on a limb and post an answer because I noticed in your header link that there was no User-Agent
set. The User-Agent
server variable is often used to detect if the user is coming from a mobile browser or not. Here is Google's discussion about Mobile Redirects. So, my suggestion would be to try and set the User-Agent
in your server-side code prior to your redirect. The whole workflow would be like this:
- Detect the user's current
User-Agent
variable. Here is a PHP example:$_SERVER['HTTP_USER_AGENT']
and store this variable for later use - Receive the URL from Google Checkout
- Prior to your redirect, set the
User-Agent
. This time, it's a cURL example:curl_setopt($ch,CURLOPT_USERAGENT,$theUserAgentYouDetected);
where $ch is the cURL instance. Here is a normal PHP example to set the user agent:$httpRequest->setHeaders(array('User-Agent' => $theUserAgentYouDetected);
- Make your normal redirect
I hope this helps