Jump to content


Corporate Sponsors


Latest News: (loading..)

Authorize.net AIM 1.0 on Godaddy


8 replies to this topic

#1 zero41

  • Community Member
  • 1 posts
  • Real Name:Paul

Posted 15 February 2008, 15:54

I'm trying to get AIM 1.0 to work on a site hosted by Godaddy on a shared server. I know that you need to add the cURL proxy info into the authorizenet_cc_aim.php for godaddy hosting, but I'm not sure where to add it and exactly what the code should be. The code I am trying to use is:
curl_setopt($curl, CURLOPT_HTTPPROXYTUNNEL, TRUE);
curl_setopt($curl, CURLOPT_PROXYTYPE, CURLPROXY_HTTP);
curl_setopt($curl, CURLOPT_PROXY, "http://proxy.shr.secureserver.net:3128");

That seems to do a lot better than not having it. I changed the $ch to $curl and inserted the 3 lines above into the authorizenet_cc_aim.php at line 341 just below:
      if (function_exists('curl_init')) {                                     
        $curl = curl_init($server['scheme'] . '://' . $server['host'] . $server['path'] . (isset($server['query']) ? '?' . $server['query'] : ''));.....

I am running AIM in test mode and all I get back is that there was an error processing my credit card. Any ideas? Also, the AIM module wants to know the curl program location. Does anyone know this for godaddy?

Thanks a million!

#2 towih_fastdogs

  • Community Member
  • 31 posts
  • Real Name:Ruthanna Birchfield

Posted 25 February 2008, 12:42

View Postzero41, on Feb 15 2008, 10:54 AM, said:

I'm trying to get AIM 1.0 to work on a site hosted by Godaddy on a shared server. I know that you need to add the cURL proxy info into the authorizenet_cc_aim.php for godaddy hosting, but I'm not sure where to add it and exactly what the code should be. The code I am trying to use is:
curl_setopt($curl, CURLOPT_HTTPPROXYTUNNEL, TRUE);
curl_setopt($curl, CURLOPT_PROXYTYPE, CURLPROXY_HTTP);
curl_setopt($curl, CURLOPT_PROXY, "http://proxy.shr.secureserver.net:3128");

That seems to do a lot better than not having it. I changed the $ch to $curl and inserted the 3 lines above into the authorizenet_cc_aim.php at line 341 just below:
      if (function_exists('curl_init')) {                                     
        $curl = curl_init($server['scheme'] . '://' . $server['host'] . $server['path'] . (isset($server['query']) ? '?' . $server['query'] : ''));.....

I am running AIM in test mode and all I get back is that there was an error processing my credit card. Any ideas? Also, the AIM module wants to know the curl program location. Does anyone know this for godaddy?

Thanks a million!


First - thank YOU for listing the code above to add to authorizenet_cc_aim.php, I've been searching the forums for two days now and this did the trick!
Second - to answer your question about the curl program location & goDaddy - I changed the default location from "/usr/bin/curl" to just "curl" and my transactions are now processing correctly. Hope this helps!!

~Ruthanna Birchfield
goCoursing.com

#3 gbmarin

  • Community Member
  • 17 posts
  • Real Name:Greg

Posted 27 February 2008, 20:45

View Postzero41, on Feb 15 2008, 03:54 PM, said:

I'm trying to get AIM 1.0 to work on a site hosted by Godaddy on a shared server. I know that you need to add the cURL proxy info into the authorizenet_cc_aim.php for godaddy hosting, but I'm not sure where to add it and exactly what the code should be. The code I am trying to use is:
curl_setopt($curl, CURLOPT_HTTPPROXYTUNNEL, TRUE);
curl_setopt($curl, CURLOPT_PROXYTYPE, CURLPROXY_HTTP);
curl_setopt($curl, CURLOPT_PROXY, "http://proxy.shr.secureserver.net:3128");

That seems to do a lot better than not having it. I changed the $ch to $curl and inserted the 3 lines above into the authorizenet_cc_aim.php at line 341 just below:
      if (function_exists('curl_init')) {                                     
        $curl = curl_init($server['scheme'] . '://' . $server['host'] . $server['path'] . (isset($server['query']) ? '?' . $server['query'] : ''));.....

I am running AIM in test mode and all I get back is that there was an error processing my credit card. Any ideas? Also, the AIM module wants to know the curl program location. Does anyone know this for godaddy?

Thanks a million!

All I can say is thank you! Thank You! Thank You!............. I've been messing with authorize.net for 2 weeks now and after adding this code and making the update to the curl location, it works great. Again, THANK YOU! I'm going to put together a simple guide to help others out in the future with the GoDaddy nightmares. If I knew then what I know now, I would have never used GoDaddy as a host.

#4 shellyky

  • Community Member
  • 90 posts
  • Real Name:shelly

Posted 23 April 2008, 17:41

View Postgbmarin, on Feb 27 2008, 08:45 PM, said:

All I can say is thank you! Thank You! Thank You!............. I've been messing with authorize.net for 2 weeks now and after adding this code and making the update to the curl location, it works great. Again, THANK YOU! I'm going to put together a simple guide to help others out in the future with the GoDaddy nightmares. If I knew then what I know now, I would have never used GoDaddy as a host.

i tried both of the answers here (the code, and the curl in the path box) and before i did those, it would just time out and go page cannot be displayed. now it actually loads but gives me:
There has been an error processing your credit card
Please try again and if problems persist, please try another payment method.

test mode, live mode, real CC #, test CC #...nothing really works except putting it on check/money order LOL which is not an option.

I wanna die--i can't believe this isn't already working. This is my 3rd OSC install and none of them have problems cept this one.

#5 nettravel99

  • Community Member
  • 2 posts
  • Real Name:George

Posted 20 May 2008, 21:08

Where are the defines for CURLPROXY_HTTP etc - I do not have it- can someone help suggest what it's value should be and where to place it

Thanks

George

Edited by nettravel99, 20 May 2008, 21:13.


#6 jsmith2

  • Community Member
  • 44 posts
  • Real Name:john

Posted 27 May 2008, 06:55

View Postnettravel99, on May 20 2008, 10:08 PM, said:

Where are the defines for CURLPROXY_HTTP etc - I do not have it- can someone help suggest what it's value should be and where to place it

Thanks

George


Yes, I need this too!

I need to figure out where to place this, who said they're going to make a guide?

Please!

#7 wgramlich

  • Community Member
  • 1 posts
  • Real Name:Wendell

Posted 30 May 2008, 02:55

Does this fix only work with godaddy or will it work with other hosting companies like 1 and 1?

#8 collink

  • Community Member
  • 1 posts
  • Real Name:Collin Klopfenstein

Posted 02 June 2008, 22:30

PHP.net (http://us2.php.net/manual/en/function.curl-setopt.php) said:

CURLOPT_PROXYTYPE Either CURLPROXY_HTTP (default) or CURLPROXY_SOCKS5 .

It's a PHP constant. It's not a osCommerce-defined value.

Edited by collink, 02 June 2008, 22:30.


#9 skCatholic

  • Community Member
  • 24 posts
  • Real Name:Adrian
  • Gender:Male
  • Location:Florida, USA

Posted 27 July 2008, 06:08

You guys are lifesavers!!! Thanks so much fellas, this now works flawlessly. Ponce should a include this information in the pdf that comes with the contribution.

It it wasn't for you guys, I would be using the less secure authorize.net contribution (i.e. no hash, or the extra cc #) and I would have to pay my merchant 5 cents and 1% more than normal.

AWESOME!!

GoDaddy sucks, but they are cheap.