I was working with a client a few months back who was trying to install and configure osCommerce on a GoDaddy hosted web site. I've set up osCommerce in the past and we decided to utilize the AIM (Advanced Integrated Method) API to talk to their Authorize.net account. osCommerce has some great contribution modules including this particular AIM module. Usually, this is a piece of cake to install and configure. All that is normally needed to do is to log into the administration area, activate the module and supply API credentials and you're in business. But of course, nothing is easy. After installing the module and testing the check out process, the application would hang and then eventually fail. After double and triple checking my configuration settings, I was wondering if there was something else wrong. Usually long 'hangs' are a possible indicator of a network connection issue. After some digging, I discovered that GoDaddy does things a little differently than the rest of the world. They include a proxy server in the mix, so that was the key to getting a proper connection.
To handle this edit your authorizenet_aim.php file located in catalog/includes/modules/payment/authorizenet_aim.php and look for the cURL configurations in the before_process() method of the authorizenet_aim() class.
The following curl options will need to be set for this to work on GoDaddy's servers
curl_setopt ($ch, CURLOPT_HTTPPROXYTUNNEL, TRUE);
curl_setopt ($ch, CURLOPT_PROXYTYPE, CURLPROXY_HTTP);
curl_setopt ($ch, CURLOPT_PROXY, "http://64.202.165.130:3128");
curl_setopt ($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
With the above values set your application should be able to connect to Authorize.net's API.
Hope this helps someone!
Go Back
|
THIS IS RIGHT!!! Godaddy is pathetic - no one knew this... Danny | 01/17/07 at 5:28PM I called and emailed GoDaddy several times after determining with 97% prob. that their servers were messing up my AIM. THANK YOU!!!!!!!! - Danny When Authorize.Net Advanced Integration Method or AIM hangs or stops - this is the solution. |
