NGRU-Kamikazie Posted August 4, 2007 Share Posted August 4, 2007 Hey, I am a bit PHP Illiterate so I need some help. I am using OSC with godaddy for hosting and Innovative Gateway Solutions. I have the path to the cURL and the username and password, however I hit a snag.... any CURL applications that make secure HTTP connections (HTTPS over port 443) need to pass through a proxy server. The address for this proxy server is proxy.shr.secureserver.net and connections must specify the use of port 3128. The code below already includes this information but is set for paypal not innovative gateway. Can anyone help me modify the Innovative gateway plugin? The plugin can be found at:http://innovativegateway.com/api_sdk.asp and the plugin im using is called osCommerce v2.2, 2.4 API (Includes CVV2 Support). <? $URL="https://www.paypal.com"; if (isset($_GET["site"])) { $URL = $_GET["site"]; } $ch = curl_init(); echo "URL = $URL <br>\n"; curl_setopt($ch, CURLOPT_VERBOSE, 1); //curl_setopt ($ch, CURLOPT_HTTPPROXYTUNNEL, TRUE); curl_setopt ($ch, CURLOPT_PROXYTYPE, CURLPROXY_HTTP); curl_setopt ($ch, CURLOPT_PROXY,"http://proxy.shr.secureserver.net:3128"); curl_setopt ($ch, CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt ($ch, CURLOPT_URL, $URL); curl_setopt ($ch, CURLOPT_TIMEOUT, 120); $result = curl_exec ($ch); echo "<hr><br>\n"; echo 'Errors: ' . curl_errno($ch) . ' ' . curl_error($ch) . '<br><br>'; echo "<hr><br>\n"; curl_close ($ch); print "result - $result"; echo "<hr><br>\n"; ?> Quote Link to comment Share on other sites More sharing options...
CD Monster Posted August 16, 2007 Share Posted August 16, 2007 Im having the same problem with godaddy support and Innovative support -- there is none. I was given this code also by godaddy and have no idea where to put this code. I have search all over the boards -high and low for hours, seen many post for this integration problem and it seems no one since 2004 has had any luck with using innovation solutions. Does someone know where this code should go.. much appreciated. Quote Music is body splash for the soul. Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.