DevSnips.com Code Snippet Repository
search:    


Navigation
  Home
About
Library
Contact
 
Snippet Library
  ColdFusion   338  
  ASP   201  
  PHP   101  
  HTML   11  
  JavaScript   77  
  XML   2  
  CSS   5  
  SQL   13  
  JSP   2  
  C#   1  
  ASP.NET   0  
  Submit a Code Snippet
 
Blog Archive
  September 2007
August 2007
July 2007
June 2007
May 2007
November 2006
October 2006
Search Archives
 
Random Affiliates
  BioMetric Base
Tom Morris
ReviewMe!
Uno-Code

Want to become an affiliate?
Read more...


Privacy Policy
© 2008

Blog Archive

 
PHP/cURL payment gateway handling for GoDaddy hosted site

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!


Submitted on 10/15/06 at 00:00AM
Post Comment | Read | Comments: 1
Bookmark to:
Add 'PHP/cURL payment gateway handling for GoDaddy hosted site' to Del.icio.us Add 'PHP/cURL payment gateway handling for GoDaddy hosted site' to digg Add 'PHP/cURL payment gateway handling for GoDaddy hosted site' to FURL Add 'PHP/cURL payment gateway handling for GoDaddy hosted site' to blinklist Add 'PHP/cURL payment gateway handling for GoDaddy hosted site' to reddit Add 'PHP/cURL payment gateway handling for GoDaddy hosted site' to Feed Me Links Add 'PHP/cURL payment gateway handling for GoDaddy hosted site' to Technorati Add 'PHP/cURL payment gateway handling for GoDaddy hosted site' to Yahoo My Web Add 'PHP/cURL payment gateway handling for GoDaddy hosted site' to Newsvine Add 'PHP/cURL payment gateway handling for GoDaddy hosted site' to Socializer Add 'PHP/cURL payment gateway handling for GoDaddy hosted site' to Ma.gnolia Add 'PHP/cURL payment gateway handling for GoDaddy hosted site' to Stumble Upon Add 'PHP/cURL payment gateway handling for GoDaddy hosted site' to Google Bookmarks Add 'PHP/cURL payment gateway handling for GoDaddy hosted site' to RawSugar Add 'PHP/cURL payment gateway handling for GoDaddy hosted site' to Squidoo Add 'PHP/cURL payment gateway handling for GoDaddy hosted site' to Spurl Add 'PHP/cURL payment gateway handling for GoDaddy hosted site' to BlinkBits Add 'PHP/cURL payment gateway handling for GoDaddy hosted site' to Netvouz Add 'PHP/cURL payment gateway handling for GoDaddy hosted site' to Rojo Add 'PHP/cURL payment gateway handling for GoDaddy hosted site' to Blogmarks Add 'PHP/cURL payment gateway handling for GoDaddy hosted site' to Shadows Add 'PHP/cURL payment gateway handling for GoDaddy hosted site' to Simpy Add 'PHP/cURL payment gateway handling for GoDaddy hosted site' to Co.mments Add 'PHP/cURL payment gateway handling for GoDaddy hosted site' to Scuttle

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.







Advertisements

GoToMyPC - Access Your PC From Anywhere