Are you having problems setting up Authorize.net, Nochex, Cybersource, VeriSign, Paypal, TrustCommerce, 2Checkout, Google Checkout, or another payment gateway services on GoDaddy hosting? As a certified Authorize.net developer Zipline Interactive regularly sets up and troubleshoots online payment integrations for companies. The most common problem we are asked to troubleshoot is how to get these payment integrations to work on GoDaddy hosting. GoDaddy is a tremendously popular web host particularly amongst our
Below we have included an example of an Authorize.net integration which uses a proxy to successfully post data using CURL on GoDaddy shared hosting. If you are using another payment gatway like: Nochex, Cybersource, VeriSign, Paypal, TrustCommerce, 2Checkout, Google Checkout your code may vary but the proxy URL will be the same.
<?PHP
//SET URLS
$curl_url = "https://secure.authorize.net/gateway/transact.dll";
$referer_url = "https://www.website.com/scripts/process.php";
$proxy_url = "64.202.165.130:3128";
//INITIALIZE A NEW CURL CONNECTION
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,$curl_url);
//ADD GODADDY SPECIFIC CODE : PROXY (http://proxy.shr.secureserver.net:3128)
curl_setopt($ch, CURLOPT_HTTPPROXYTUNNEL, true);
curl_setopt($ch, CURLOPT_PROXYTYPE, CURLPROXY_HTTP);
curl_setopt($ch, CURLOPT_PROXY,$proxy_url);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
//COMPOSE THE CURL REQUEST
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_REFERER,$referer_url);
curl_setopt($ch, CURLOPT_POSTFIELDS, $valuestopost);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
//RETURN CURL RESULTS
$curlresults = curl_exec($ch);
//CLOSE CURL CONNECTION
curl_close ($ch);
?>