This is a discussion on Authorize.net Error within the osCMax v1.7 General Mods Discussion forums, part of the osCMax v1.7 Forums category; Okay So I had a problem with my max1.7 store, it wouldnt work with authorize.net, so i hired ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| Okay So I had a problem with my max1.7 store, it wouldnt work with authorize.net, so i hired a third party coder to trouble shoot my store.. they fixed it and got the module working.. Now i installed another oscmax 1.7 store and i have the same problem.. It just wont connect with authorize.net, i dont get it, i have the curl path set up correctly, ive been searching left and right on this form.. it wont work and i cant afford to use the third party coder to fix it.. Please help... thank You |
|
#2
| ||||
| ||||
| There is no problem with the authorize net module. The module requires that cURL be compiled into PHP with SSL support. Check your server's specs to make sure it meets taht requirement.
__________________ Michael Sasek osCMax Developer osCMax Templates - Hundreds of premium quality templates. New designs every month! xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host. |
|
#3
| |||
| |||
| Im on a shared server with mediatemple.com. How do i check to see if curl is compiled with php? EDIT:: i talked to the host and curl is compiled into php with ssl support.. but he notified me that php is in safe mode.. does that make any difference? |
|
#4
| ||||
| ||||
| In /includes/modules/authorizenet_direct.php, have you correctly set your path to curl? Find this code: Code: // Post order info data to Authorize.net, make sure you have curl installed
// Please edit the "Path to cURL" to reflect your path to cURL. Leave the -d and everything
// after it intact (i.e. /usr/local/bin/curl or c:/apache/htdocs/bin/curl)
exec("/usr/bin/curl -d \"$data\" https://secure.authorize.net/gateway/transact.dll", $response);
__________________ Michael Sasek osCMax Developer osCMax Templates - Hundreds of premium quality templates. New designs every month! xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host. |
|
#5
| |||
| |||
| I have it set correctly. and it still isnt working.. Could it be server related? |
|
#6
| ||||
| ||||
| When you say it is not working, are you getting any error messages? Have you looked in the error logs to see if they tell you anything? You may want to try changing the curl call to: Code: exec("/usr/bin/curl -dk \"$data\" https://secure.authorize.net/gateway/transact.dll", $response); Also, if you have ssh access, from the server command line when you type which curl what is the output?
__________________ Michael Sasek osCMax Developer osCMax Templates - Hundreds of premium quality templates. New designs every month! xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host. |
|
#7
| |||
| |||
| First off. Thanks for helping me out.. The error logs arent reporting anything.. And when i type which curl in ssh, it says which:command not found. and unfortunately the -dk didnt work.. Wow this is so frustrating... Thanks |
|
#8
| ||||
| ||||
| Is the exec command disabled on your server? Is this a linux machine? You may want to use the php curl commands instead of command line curl. Replace the above code I posted with this: Code: $defined_vars = get_defined_vars();
$_url = 'https://secure.authorize.net/gateway/transact.dll';
$ch = curl_init();
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS,$data);
curl_setopt($ch, CURLOPT_URL,$_url);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);
curl_setopt($ch, CURLOPT_VERBOSE, 0);
curl_setopt($ch, CURLOPT_USERAGENT, $defined_vars['HTTP_USER_AGENT']);
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
$authorize = curl_exec ($ch);
curl_close ($ch);
$response = split(',', $authorize);
echo("Output: ".$response);
__________________ Michael Sasek osCMax Developer osCMax Templates - Hundreds of premium quality templates. New designs every month! xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host. |
|
#9
| |||
| |||
| So i changed the code as you specifies above, and it replied Code: Parse error: parse error, unexpected T_STRING in /home/virtual/site137/fst/var/www/html/shop/includes/modules/authorizenet_direct.php on line 70 |
|
#10
| ||||
| ||||
| Find this line (should be 65): Code: unset($response); Code: // Post order info data to Authorize.net, make sure you have curl installed
// Please edit the "Path to cURL" to reflect your path to cURL. Leave the -d and everything
// after it intact (i.e. /usr/local/bin/curl or c:/apache/htdocs/bin/curl)
$defined_vars = get_defined_vars();
$_url = 'https://secure.authorize.net/gateway/transact.dll';
$ch = curl_init();
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS,$data);
curl_setopt($ch, CURLOPT_URL,$_url);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);
curl_setopt($ch, CURLOPT_VERBOSE, 0);
curl_setopt($ch, CURLOPT_USERAGENT, $defined_vars['HTTP_USER_AGENT']);
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
$authorize = curl_exec ($ch);
curl_close ($ch);
$response = split(',', $authorize);
echo("Output: ".$response);
?>
__________________ Michael Sasek osCMax Developer osCMax Templates - Hundreds of premium quality templates. New designs every month! xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host. |
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Authorize.net Cryptic Error messages | Christy | osCMax v2 Installation issues | 1 | 12-21-2006 02:37 PM |
| Authorize.net error:This account has not been given.... | TangledTech | osCMax v1.7 Installation | 1 | 07-31-2006 10:40 PM |
| Error received when accepting payment through authorize.net | bbsemail | osCommerce 2.2 Installation Help | 3 | 02-07-2005 08:52 AM |
| Authorize.net checkout error | toddhata | osCMax v1.7 Installation | 5 | 01-28-2005 06:37 AM |
| Authorize.net Checkout Error | mycustomweb | osCommerce 2.2 Modification Help | 1 | 11-25-2003 06:57 AM |