Any user that host with Godaddy.com may be experancing a timout when
submitting a credit card payment with the Authorize.net AIM module.
Cause:
The PHP cURL modules on Godaddy servers need to be configured to use a
their proxy. The PHP cURL modules are used to safely fetch/communicate
with 3rd party services. E.g. Authorize.net, Yahoo Weather, Google
news RSS, etc.....
Solution:
- Open /content/gateways/authorizenetaim.php
- Find the following code segment:
$ch = curl_init($auth_net_url);
curl_setopt($ch, CURLOPT_HEADER, 0); // set to 0 to eliminate header
info from response
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); // Returns response data
instead of TRUE(1)
curl_setopt($ch, CURLOPT_POSTFIELDS, rtrim( $fields, "& " )); // use
HTTP POST to send form data
### curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); // uncomment this
line if you get no gateway response. ###
$resp = curl_exec($ch); //execute post and get results
curl_close ($ch);
- Replace code segment above with:
//Godaddy CURL modification
$URL = $auth_net_url;
$ch = curl_init();
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_HEADER, 0); // set to 0 to eliminate header
info from response
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); // Returns response data
instead of TRUE(1)
curl_setopt($ch, CURLOPT_POSTFIELDS, rtrim( $fields, "& " )); // use
HTTP POST to send form data
curl_setopt ($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_setopt ($ch, CURLOPT_URL, $URL);
curl_setopt ($ch, CURLOPT_TIMEOUT, 120);
$resp = curl_exec ($ch);
curl_close ($ch);
- Save an upload file over older version