I have a code that isn't running correctly. It almost seems as if the gateway is not connecting.
Anyway, here's the code:
$authnet_url = "https://secure.authorize.net/gateway/transact.dll";
$curl = "/usr/local/bin/curl";
function authorizenet($first_name, $last_name,$phone,$fax,
$address, $city, $state, $zip, $country,$company,$email,
$cardnum, $expdate,$amount)
{
global $curl;
global $authnet_url;
$data = 'all of the information necessary to complete an Authorize transaction';
$data=ereg_replace(" ","+",$data);
exec("$curl -d \"$data\" $authnet_url", $authnet_array);
$authnet_array=explode(",",$authnet_array[0]);
$authnet_results=array(
Printing out all of the keys as returned by the gateway
);
return $authnet_results;
}
I can't imagine what the problem could be. Then again, I kind of suck at this.
By the way, it is confirmed that all of the variables that are being passed to the function are working.
Thanks in advance.