osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

Authorize.net Error

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 ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v1.7 Forums > osCMax v1.7 General Mods Discussion

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 03-24-2005, 02:52 PM
New Member
 
Join Date: Nov 2004
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
seandon01
Default Authorize.net Error

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #2  
Old 03-24-2005, 03:24 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,247
Thanks: 66
Thanked 294 Times in 280 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default RE: Authorize.net Error

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.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 03-24-2005, 04:00 PM
New Member
 
Join Date: Nov 2004
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
seandon01
Default

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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 03-24-2005, 09:26 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,247
Thanks: 66
Thanked 294 Times in 280 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default

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);
and follow the instructuions...
__________________
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.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #5  
Old 03-25-2005, 01:24 PM
New Member
 
Join Date: Nov 2004
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
seandon01
Default

I have it set correctly. and it still isnt working.. Could it be server related?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #6  
Old 03-25-2005, 02:56 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,247
Thanks: 66
Thanked 294 Times in 280 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default

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);
See if that helps.

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.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #7  
Old 03-25-2005, 03:04 PM
New Member
 
Join Date: Nov 2004
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
seandon01
Default

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #8  
Old 03-25-2005, 04:40 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,247
Thanks: 66
Thanked 294 Times in 280 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default

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.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #9  
Old 03-25-2005, 05:24 PM
New Member
 
Join Date: Nov 2004
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
seandon01
Default

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
Also i dont know how to check if the exec command is disabled. yes it is linux. Thank you very much. I really appreciate you helpin me
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #10  
Old 03-25-2005, 07:43 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,247
Thanks: 66
Thanked 294 Times in 280 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default

Find this line (should be 65):

Code:
unset($response);
And replace all the code after it with:

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);

?>
It works for me without any parse errors, so I can only assume there is a mistake somewhere in how you pasted it into your file.
__________________
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.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread



Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

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


All times are GMT -8. The time now is 09:44 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
Copyright 2008 osCMax