OSCOMMERCE SUPPORT CALL 702-453-3332

 

Help - Search - Members - Calendar
Full Version: Authorize.net AIM 1.0 on Godaddy
osCommerce Community Support Forums > osCommerce Online Merchant v2.x > Contributions / Add-Ons > Payment Modules > Authorize.net
zero41
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:
CODE
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:
CODE
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!
towih_fastdogs
QUOTE (zero41 @ Feb 15 2008, 10:54 AM) *
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:
CODE
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:
CODE
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
gbmarin
QUOTE (zero41 @ Feb 15 2008, 03:54 PM) *
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:
CODE
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:
CODE
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.
shellyky
QUOTE (gbmarin @ Feb 27 2008, 08:45 PM) *
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.
nettravel99
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
jsmith2
QUOTE (nettravel99 @ May 20 2008, 10:08 PM) *
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!
wgramlich
Does this fix only work with godaddy or will it work with other hosting companies like 1 and 1?
collink
QUOTE (PHP.net (http://us2.php.net/manual/en/function.curl-setopt.php))
CURLOPT_PROXYTYPE Either CURLPROXY_HTTP (default) or CURLPROXY_SOCKS5 .


It's a PHP constant. It's not a osCommerce-defined value.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.