Maybe I am not doing this correctly, but I can’t seem to get this to work. I looked at the wiki for Google Checkout and followed it exactly. I have SSL enabled on my site… and I entered the API Callback URL as: https://secure.omnivariety.com/googlecheckout/api
Then when I look at my integration console in google checkout I keep getting the following error.
We encountered an error trying to access your server at https://secure.omnivariety.com/googlecheckout/api/—the error we got is: Sending failed with HTTP response code: 401. Response body was: Failed to Get Basic Authentication Headers
Then it says, “XML We Sent:” with the following code.
/** * Verifies that the authentication sent by Google Checkout matches the * merchant id and key * * @param string $headers the headers from the request */ function HttpAuthentication($headers=null, $die=true) { if(!is_null($headers)) { $_SERVER = $headers; } // moshe's fix for CGI if (empty($_SERVER['HTTP_AUTHORIZATION'])) { foreach ($_SERVER as $k=>$v) { if (substr($k, -18)==='HTTP_AUTHORIZATION' && !empty($v)) { $_SERVER['HTTP_AUTHORIZATION'] = $v; break; } } }