Solution: EProcessingNetwork.net Authorize.net Emulation
Mr. Byrnes,
Thank you for your reply but I know it was not a FTP issue. It was a code issue. To get it working with EprocessingNetwork.net's Authorize.net emulator, the AuthNet_PHP.php code has to be changed. First, find the following code. It should be between line 42 and 51.
<code>
$ch = curl_init();
curl_setopt($ch, CURLOPT_POST,1);
curl_setopt($ch, CURLOPT_POSTFIELDS,$AuthNet_values);
curl_setopt($ch, CURLOPT_URL,"https://" . ($reqArray[1][4] == 1 ? 'test' : 'secure') . ".authorize.net/gateway/transact.dll");
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);
curl_setopt($ch, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']);
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
$resp = curl_exec ($ch);
curl_close ($ch);
</code>
Change it to the following:
<code>
$ch = curl_init();
curl_setopt($ch, CURLOPT_POST,1);
curl_setopt($ch, CURLOPT_POSTFIELDS,$AuthNet_values);
curl_setopt($ch, CURLOPT_URL,"https://www.eProcessingNetwork.Com/cgi-bin/an/order.pl");
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);
curl_setopt($ch, CURLOPT_USERAGENT, $_SERVER['HTTPS']);
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
$resp = curl_exec ($ch);
</code>
I have a sneaking hunch that if you just change the CURLOPT_URL to point to any other Authorize.net emulator, it should work.
v/r
Clinton Austin
Austin IT Consulting