I get nothing when I type http://mydomain/googlecheckout/responsehandler.php. What does this mean? something wrong with .htaccess file?
I get nothing when I type http://mydomain/googlecheckout/responsehandler.php. What does this mean? something wrong with .htaccess file?
your directory path should be //[yourdomain]/[shop]/... where shop is probably "catalogue" or some other name you or zen-cart chose.
The htaccess and htpasswd files installed by Google would make the username/password screen popup in http:// mode. If you are getting some sort of file not found or can't view error, you have not typed in the right path to the googlecheckout directory.
Don't mean to go off-topic here, just need to clarify.
Because credit card and bank information is not transmitted in Instant Payment Notification (IPN), PayPal does not require Secure Sockets Layer (SSL) to encrypt IPN transmissions.
So if implementing "HTTPS Postback" type notification, you can do it without SSL. But PayPal recommends employing SSL.
(and if you employ "Shared Secret Validation" for notification then SSL is required).
From the PayPal IPN payment module for Zen Cart install instructions:Woodyset your Instant Payment Notification Preferences URL to:
https://YOUR_DOMAIN/YOUR_SHOP/ipn_main_handler.php
My issues, questions and server details: Post # 1382
There is no error. However, I'm on an IIS server, so the .htaccess doesn't work. I have to use Windows Authentication. But, there is no difference in the result when I password protect this directory using the merchant ID as the user and the merchant key as the password.
Ok, I wish there was documentation somewhere which said that this ONLY works on an Apache server! I've spent weeks on this trying to figure out why it wouldn't work! Searched just about every forum thread I could find on this, searched google, looked at google documentation. I couldn't find anything on this. Well, all you out there who have had the same trouble I have had, here is your documentation.
Line 104 of responsehandler.php:
PHP_AUTH_USER only works with Apache. http://us.php.net/features.http-authPHP Code:
if(MODULE_PAYMENT_GOOGLECHECKOUT_CGI != 'True') {
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("HTTP Basic Authentication failed. Can't retrive Merchant Id/Key, Installed over CGI??\n");
exit(1);
}
The reason I was getting this error and the google checkout hasn't worked is because it doesn't work on IIS!
Yes, contrabutions should have better documentation.
Unfortunatly many open source contributers aren't good at producing documentation.
Google sent me a link to the Google Checkout Buye'rs tour.
It may be a good link to have on your cart page.
[FONT=Consolas]http://checkout.google.com/buyer/tour.html[/FONT]
JP
Working on a solution to the Anti-IIS Google Checkout. Not working yet, but here is the progress. Maybe someone knows what I'm doing wrong?
The idea is that it would eventually work on a Windows (IIS) server with LDAP installed. php.ini would also have to have LDAP enabled.
Around Line 104, responsehandler.php
PHP Code:
if(MODULE_PAYMENT_GOOGLECHECKOUT_CGI != 'True') {
if(dirname($_SERVER['SERVER_SOFTWARE'])=='Microsoft-IIS'){
$ldap='<ldap server address here>';
$connect="";
// connect to LDAP server
if (!($connect=@ldap_connect($ldap))) {
error_func('Unable to connect to LDAP server.');
exit(1);
}
// bind to LDAP server
else if (!($bind=@ldap_bind($connect, $merchant_id, $merchant_key))) {
error_func('Windows authentication failed.');
exit(1);
}
else{
$compare_mer_id=$merchant_id;
$compare_mer_key=$merchang_key;
}
}
else 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 {
//Apache server authentication err
error_func("HTTP Basic Authentication failed. Can't retrive Merchant Id/Key, Installed over CGI??\n");
exit(1);
}
if($compare_mer_id != $merchant_id || $compare_mer_key != $merchant_key) {
error_func("HTTP Basic Authentication failed. Wrong Merchant Id/Key Validation\n");
exit(1);
}
}
Bookmarks