Re: Google Checkout module for Zen Cart 1.3.x (beta) tweaking the code for Level 2
This post is for anyone having trouble achieving Level 2 integration for Google checkout in Zen Cart v 1.3.8a.
My problem was, although everything was correctly installed, (files, SSL, Merchant ID, etc etc etc), Google checkout was still performing at Level 1 integration (customer can purchase items through google checkout button however there is no communication between Google and your admin).
No account is created for the customer, orders do not show up in admin, stock is not depreciated because the order is not recorded in the database.
I was getting Google Checkout Errors stating that my callback URL was not accessible.
After MUCH research in google code forums, i found a bit of advice that worked to fix this.
Please read, code.google.com/p/google-checkout-php-sample-code/issues/detail?id=36
as it refers to this php snippet:
PHP Code:
function HttpAuthentication($headers=null, $die=true) {
if(!is_null($headers)) {
$_SERVER = $headers;
}
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'];
}
// IIS Note:: For HTTP Authentication to work with IIS,
// the PHP directive cgi.rfc2616_headers must be set to 0 (the default value).
else if(isset($_SERVER['HTTP_AUTHORIZATION'])){
list($compare_mer_id, $compare_mer_key) = explode(':',
base64_decode(substr($_SERVER['HTTP_AUTHORIZATION'],
strpos($_SERVER['HTTP_AUTHORIZATION'], " ") + 1)));
} else if(isset($_SERVER['Authorization'])) {
list($compare_mer_id, $compare_mer_key) = explode(':',
base64_decode(substr($_SERVER['Authorization'],
strpos($_SERVER['Authorization'], " ") + 1)));
} else {
$this->SendFailAuthenticationStatus(
"Failed to Get Basic Authentication Headers",$die);
return false;
}
if($compare_mer_id != $this->merchant_id
|| $compare_mer_key != $this->merchant_key) {
$this->SendFailAuthenticationStatus("Invalid Merchant Id/Key Pair",$die);
return false;
}
return true;
}
it worked for me!
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
psychosis
I installed the cart as directed and followed all the instructions. Everything seems to work. its in the modules. it shows up on my site. i put it on. I have the google account, entered all the ID info etc.
when i make a test order, i can see googlecheckout on my sites checkout site, when i choose it, and click confirm to confirm the order, it doesnt do anything. Just sends me back to the beginning of the checkout process where it says, Your order is not complete, please click on the checkout button to finish your order.
when you click the button it starts the checkout process again, and goes into a perpetual loop. i read about 40 pages in this thread, but didnt see anything to help.
anyone?
i am using 1.3.8a
the only addons i have is the security patch.
standard template, standard install.
my site is
www.vinyljunkiedistro.com
I had this same problem. Turns out the directions that unzipped with the files didn't list all of the files that needed to be copied over... there were 6 files that needed to be uploaded in YOUR_ZENCART_FOLDER/includes/templates/YOUR_TEMPLATE/templates, but the directions only identified 2 that needed to be uploaded. Once I uploaded the rest of them, I got hte 'big blue button' and it worked like a charm!
HTH!
Re: Google Checkout module for Zen Cart (beta)
I have been having an issue with GCO for over a year now and its about to the point I am just going to delete the whole darned thing from my site.
I have NO communication between Google and Zencart. The error in Tools->Integration Console is :
We encountered an error trying to access your server at https://domainname.com/shop/googlech...nsehandler.php -- the error we got is Send failed with code: 500. Response body was: <!-- SHTML Wrapper - 500 Server Error -->
Any ideas would be nice as just yesterday I had a customer order, but no record of it in Admin. Is there any way to manually add the order to Zencart Admin so I at least have a record of it?
Re: Google Checkout module for Zen Cart 1.3.x (beta)
First, I'd check if responsehandler.php is actually present where the Integration Console thinks it is. I'm guessing this is your path; I entered "https://eclecticaclothing.com/shop/googlecheckout/responsehandler.php" in my browser and got a blank page.
On my site, doing the same thing pulls up a password request.
Re: Google Checkout module for Zen Cart 1.3.x (beta)
Interesting..well now I am lost at what do to with this since I don't see an error. It's very frustrating as GCO will work for months, then suddenly stop working, with no changed to the site whatsoever.
Re: Google Checkout module for Zen Cart 1.3.x (beta)
i have the same problem google not sending info back to admin, also their is no google checkout button on final checkout page, although its present as express checkout on the other pages
i offer free shipping , on google interface shows customers have selected store pick up -is there anyway of correcting this to show free shipping
thanks any help greatly appreciated
www.starlitefurniture.co.uk
Re: Google Checkout module for Zen Cart 1.3.x (beta)
Hi everyone, I am using the latest version of Zen Cart and I am attempting to completely remove the module from my store. I have uninstalled all the files and i have reinstalled the files that were changes. I also dropped the 2 database table the the module added. I still have Google orders showing on my admin page.
Specifically this is what I see:
Orders
Pending: 4
Processing: 3
Delivered: 0
Update: 0
Google New: 0
Google Processing: 0
Google Digital Processed: 0
Google Shipped: 0
Google Refunded: 0
Google Shipped and Refunded: 0
Google Canceled: 0
How can I remove this last little bit of information so as not to confuse the store manager?
Thank you!
Amy
Re: Google Checkout module for Zen Cart 1.3.x (beta)
Those fields are in the database table named "zen_order_status"
Re: Google Checkout module for Zen Cart 1.3.x (beta)
Quote:
Originally Posted by
starlitefurniture
i have the same problem google not sending info back to admin, also their is no google checkout button on final checkout page, although its present as express checkout on the other pages
www.starlitefurniture.co.uk
Just a guess, but have you excluded the googlecheckout folder from being rewritten by your URL rewrite addon? If you're using CEON, you add it to the .htaccess file.
Re: Google Checkout module for Zen Cart 1.3.x (beta)
I have a question,
I have recently installed Google Checkout. I have run a few test orders sucessfully.
However:
In the googlecheckout README file it says "Make sure you set the file attribute to 777 for
/googlecheckout/logs/response_error.log and /googlecheckout/logs/response_message.log files."
I have done this. After running a few test orders, I then FTP'd a copy of /public_html/googlecheckout/logs/response_message.log to my local computer - this response_message.log file contained all test customers details; address, email, phone number etc... out of interest I then went to http://www.mydomain.com/googlechecko...se_message.log and was able to download the response_message.log file - containing sensitive customer info. Does this mean anyone can do the same?? Is this correct?? Have I done something wrong??
Also I noticed that my google checkout does not subtract an item from stock when purcased.. is this normal??
Thanks.