Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Google Checkout HTTP Basic Authentication failed.


orbitus

Recommended Posts

osCommerce 2.2

I have ssl, and Google Checkout is set at the correct https callback but I

keep getting "HTTP Basic Authentication failed. " in the response_error.log

 

The implementation seems to be fine on my end, it send the cart to google just fine but after that my site does not get an update so I dont get any records of orders. I hope someone can point me in the right direction I have been at this for days.

 

Chris

Link to comment
Share on other sites

  • 3 weeks later...
osCommerce 2.2

I have ssl, and Google Checkout is set at the correct https callback but I

keep getting "HTTP Basic Authentication failed. " in the response_error.log

 

The implementation seems to be fine on my end, it send the cart to google just fine but after that my site does not get an update so I dont get any records of orders. I hope someone can point me in the right direction I have been at this for days.

 

Chris

 

 

The SAME EXACT thing is happening to me!!! I've been trying to figure this out for too long and i'm ready to just give up with Google Checkout... Does anyone know how to fix this??? I am using the sandbox, and i have a 256bit SSL connection through GoDaddy.

 

The response_error log keeps saying "HTTP Basic Authentication failed.", and the response_message log fills up with lots of stuff (from what i can tell it gets the merchant-calculation-callback, new-order-notification, order-state-change-notification, finally the risk-information-notification)! So i know the API callback is working since my website is receiving this information, but for some reason it's not adding it to my orders. Does anyone know what to do?

 

-justin

Link to comment
Share on other sites

The SAME EXACT thing is happening to me!!! I've been trying to figure this out for too long and i'm ready to just give up with Google Checkout... Does anyone know how to fix this??? I am using the sandbox, and i have a 256bit SSL connection through GoDaddy.

 

The response_error log keeps saying "HTTP Basic Authentication failed.", and the response_message log fills up with lots of stuff (from what i can tell it gets the merchant-calculation-callback, new-order-notification, order-state-change-notification, finally the risk-information-notification)! So i know the API callback is working since my website is receiving this information, but for some reason it's not adding it to my orders. Does anyone know what to do?

 

-justin

 

I was able to just turn off the authentication by changing the responsehandler.php file.

 

//Parse the HTTP header to verify the source.
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.\n");
// exit(1); <<<<<<<<<Note the commenting out of the exit>>>>>>>>>>
}

$googlepayment = new googlecheckout();
$merchant_id = $googlepayment->merchantid;
$merchant_key = $googlepayment->merchantkey;

if($compare_mer_id != $merchant_id || $compare_mer_key != $merchant_key) {
error_func("HTTP Basic Authentication failed.\n");
//exit(1); <<<<<<<<<Note the commenting out of the exit>>>>>>>>>>
}

 

Good Luck

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...