Guys I have to admit. I have been postin in all forums around this cart and am getting nowhere. I have been extensively through and on OSCOmmerce.com with no success. I am hoping someone here can help me with this problem.
I have a cart here ( http://www.chefandreas.com/flash/nieto.html ) It has the OS Commerce cart on it fully poulated with Authorize.net standing by. I am unable to get the auhtorizenet.php mudule to work. I am getting an error message that reads, Unable to Process your credit card please try again.
I have a log file which tells me nothing at first glance. I have placed this script at the botoom of my authorizenet_direct.php page
// Post order info data to Authorize.net, make sure you have curl installed
$cmd = "/usr/include/curl -d \"$data\"
https://secure.authorize.net/gateway/transact.dll";
echo "<br>" . $cmd . "<br>";
exec($cmd, $response);
It prints out this error message.
Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home/chefandr/public_html/shop/includes/modules/authorizenet_direct.php on line 43
Warning: Cannot add header information - headers already sent by (output started at /home/chefandr/public_html/shop/includes/modules/authorizenet_direct.php:43) in /home/chefandr/public_html/shop/includes/functions/general.php on line 23
This is an error that has changed from time to time with adjustments. It was giving me an error regarding the Country. Auhtorize.net is looking for country titles to be US or CAN not united states.
I then get some help from a guy on OS COmmerce which suggested this.
In that version the $order->delivery['country'] is a string like "United
States" or
"Canada" etc.
We'll need to check and change that to what Authorize.net wants.
I think they want US and CA for USA and Canada
so...
$dstr = "XX";
if ($order->delivery['country'] == "United States") $dstr = "US";
if ($order->delivery['country'] == "Canada") $dstr = "CA";
And then use $str for the string to authorize.net command
x_Ship_To_Country => "{$order->delivery['country']}",
x_Ship_To_Country => "$dstr",
As you can see I am confused beyound all recognition and out of time. I need some experienced help and am willing to pay for it.
Any one?
John





LinkBack URL
About LinkBacks










Bookmarks