My version of /includes/modules/payment/authorizenet_aim.php did not have the following:
//========================
// If you have GoDaddy hosting or other hosting services that require use of a proxy to talk to external sites via cURL,
// then uncomment the following 3 lines and substitute they proxy server's address for 1.1.1.1 below:
// curl_setopt ($ch, CURLOPT_HTTPPROXYTUNNEL, true);
// curl_setopt ($ch, CURLOPT_PROXYTYPE, CURLPROXY_HTTP);
// curl_setopt ($ch, CURLOPT_PROXY, '1.1.1.1');
//========================
So I added it to the script as follow. Did I do anything wrong? Please advise.
PS. It now works.
Thank you Dr. Byte
// SEND DATA BY CURL SECTION
// Post order info data to Authorize.net, make sure you have curl installed
unset($response);
// The commented line below is an alternate connection method
//exec("/usr/bin/curl -d \"$data\" https://secure.authorize.net/gateway/transact.dll", $response);
$url = 'https://secure.authorize.net/gateway/transact.dll';
$ch = curl_init();
//========================
// If you have GoDaddy hosting or other hosting services that require use of a proxy to talk to external sites via cURL,
// then uncomment the following 3 lines and substitute they proxy server's address for 1.1.1.1 below:
curl_setopt ($ch, CURLOPT_HTTPPROXYTUNNEL, true);
curl_setopt ($ch, CURLOPT_PROXYTYPE, CURLPROXY_HTTP);
curl_setopt ($ch, CURLOPT_PROXY, '64.202.165.130:3128');
//========================
// I added this in 11-18-05 authorize.net did not work on Windows 2000
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($ch, CURLOPT_URL,$url);
curl_setopt($ch, CURLOPT_VERBOSE, 0);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
$authorize = curl_exec($ch);
curl_close ($ch);
$response = split('\,', $authorize);
// DATABASE SECTION
// Insert the send and receive response data into the database.
// This can be used for testing or for implementation in other applications
// This can be turned on and off if the Admin Section
if (MODULE_PAYMENT_AUTHORIZENET_AIM_STORE_DATA == 'True'){
// Create a string from all of the response data for insertion into the database
while(list($key, $value) = each($response)) {
$response_list .= ($key +1) . '=' . urlencode(ereg_replace(',', '', $value)) . '&';
}