Google Checkout Sandbox URL change
I apologize if this is repeated somewhere in the forums, but I couldn't find mention of it myself. The URL for the Google Checkout Sandbox has changed:
http://groups.google.com/group/googl...id=-QVE1zTmcuw
So if you are already using the Zen Cart Google payment module (in sandbox mode for testing), you have to go into your configuration table, find the Google Checkout entries (probably towards the last rows) and edit the fields accordingly.
If you haven't run the install script yet, you can edit the sandbox urls in googlecheckout.php, so that the correct values get stored in the database.
Hope this helps someone, I was momentarily mystified.
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
anjordan77
I just reinstalled 1.0.4r, testing now:
// ** GOOGLE CHECKOUT **
Fatal error: Cannot redeclare class googlecheckout in /home/apbs77/public_html/includes/modules/payment/googlecheckout.php on line 26
AnJordan, the latest release is at googlecode svn/trunk 1.0.5
See my signature for the link.
ropu
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
ropu
Try setting correct Default Values in the Admin UI for all shipping Methods.
as far as i can see an empty string is sent in the price item
ropu
Hi ropu,
all have entered all shipping values as $5.00. see screen printout.
http://lh3.google.com/image/durjnet8...GCproblem1.JPG
I assume problem is something else.
pls suggest
Re: Google Checkout module for Zen Cart (beta)
I know many people have posted on this issue, and I have tried subsequent suggestions, with no luck. I am operating in Sandbox mode with the files from GCO 1.0.5.
Everything appears to be working (I receive email notification of an order and the message log shows the order xml data). However, the orders do not appear in my Zen admin, and stock is not deducted. The only error in my error log is:
Wed Feb 7 14:02:05 CST 2007:- Line 119: headers['Authorization'] is NULL.
Which appears several times. I don't see anything in my sandbox "Integration Issues" section.
I'm running Zen Cart 1.3.7.
Any help, direction, advice would be really appreciated.
Re: Google Checkout Sandbox URL change
Quote:
Originally Posted by
nabrown78
I apologize if this is repeated somewhere in the forums, but I couldn't find mention of it myself. The URL for the Google Checkout Sandbox has changed:
http://groups.google.com/group/googl...id=-QVE1zTmcuw
So if you are already using the Zen Cart Google payment module (in sandbox mode for testing), you have to go into your configuration table, find the Google Checkout entries (probably towards the last rows) and edit the fields accordingly.
If you haven't run the install script yet, you can edit the sandbox urls in googlecheckout.php, so that the correct values get stored in the database.
Hope this helps someone, I was momentarily mystified.
Please note that googlecheckout/gcheckout.php line 403
PHP Code:
if ($srv_mode == 'https://sandbox.google.com/checkout/' && $http_mode == 'http') {
also changed, /checkout/ is added
ropu
Re: Google Checkout Sandbox URL change
yeah i installed according to previous posts about adding the 5 files to googlecheckout/
things seem to work except the admin getting notification. I even see attributes popping up.
ropu, in other news, is google going to try to figure out how to merge the googlebase with zencart? the current googlefroogle feeder isn't quite up to par with google.
Re: Google Checkout Sandbox URL change
Quote:
Originally Posted by
anjordan77
yeah i installed according to previous posts about adding the 5 files to googlecheckout/
things seem to work except the admin getting notification. I even see attributes popping up.
ropu, in other news, is google going to try to figure out how to merge the googlebase with zencart? the current googlefroogle feeder isn't quite up to par with google.
try changing in version 1.0.5 googlecheckout/responsehandler.php line 93
PHP Code:
if(isset($HTTP_SERVER_VARS['PHP_AUTH_USER']) && isset($HTTP_SERVER_VARS['PHP_AUTH_PW'])) {
$compare_mer_id = $HTTP_SERVER_VARS['PHP_AUTH_USER'];
$compare_mer_key = $HTTP_SERVER_VARS['PHP_AUTH_PW'];
} else {
error_func("Line 119: headers['Authorization'] is NULL.\n");
exit(1);
}
for
PHP Code:
if(isset($_SERVER['PHP_AUTH_USER']) && isset($_SERVER['PHP_AUTH_PW'])) {
$compare_mer_id = $_SERVER['PHP_AUTH_USER'];
$compare_mer_key = $_SERVER['PHP_AUTH_PW'];
} else {
error_func("Line 119: headers['Authorization'] is NULL.\n");
exit(1);
}
perhaps ur php version doent allow $HTTP_SERVER_VARS
TIP:
use the Test the implementation: in my signature to test responsehandler ;)
ropu
Re: Google Checkout module for Zen Cart (beta)
Ropu -
Thanks for the new code. Somehow, I'm still getting the same result. Orders are made, show up in GC Sandbox okay, but don't feed back to Zen admin.
When I tried your test script, I placed in a chunk of the response_message.log that was an entire '<new-order-notification>'. What I got back when I went to responsehandler_test.php on my server was this:
Code:
HTTP/1.1 100 Continue HTTP/1.1 100 Continue HTTP/1.1 200 OK Date: Thu, 08 Feb 2007 18:31:14 GMT Server: Apache/1.3.37 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 FrontPage/5.0.2.2635.SR1.2 mod_ssl/2.8.28 OpenSSL/0.9.7a PHP-CGI/0.1b Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0 Expires: Thu, 19 Nov 1981 08:52:00 GMT Pragma: no-cache X-Powered-By: PHP/4.4.4 Set-Cookie: zenid=fc05c7b4456169559a8d731ceb5541ff; path=/; domain=roll-over-rover.com Transfer-Encoding: chunked Content-Type: text/html; charset=iso-8859-1 Time to response: 0.265028953552 segs Note: This script MUST response in less than 3 sec. so GC srv doesn't timeout.'
Hope that's not revealing too much. In any case, it's not really what I expected - is that what I should be seeing? Thanks for your help.
Re: Google Checkout module for Zen Cart (beta)
So it seems to me the problem must either be that one of $_SERVER['PHP_AUTH_USER'] or $_SERVER['PHP_AUTH_PW'] isnot set, or somehow my server isn't allowing me access to them or something. Is there any way I can test around these problems easily, to diagnose what's going on?
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
nabrown78
So it seems to me the problem must either be that one of $_SERVER['PHP_AUTH_USER'] or $_SERVER['PHP_AUTH_PW'] isnot set, or somehow my server isn't allowing me access to them or something. Is there any way I can test around these problems easily, to diagnose what's going on?
Just for debugging, add
PHP Code:
<?php
print_r($_SERVER);
?>
in the first lines of responsehandler.php and run the responsehandler_test.php this will show you all the HTTP headers. one of them must be the Authentications-
if you post the result, please obfuscate the merchant id/key data.
ropu