Page 1 of 2 12 LastLast
Results 1 to 10 of 15

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

      
  1. #1
    New Member
    Join Date
    Nov 2004
    Posts
    23
    Rep Power
    0


    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

  2. #2
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,501
    Rep Power
    567


    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 installation service - Have our professionals install osCmax on your server - same day service!
    osCmax 2.0 User Manual - the must have beginners guide to osCmax v2.0

    Stay Up To Date with everything osCMax:
    Free osCMax Newsletters - Security notices, New Releases, osCMax News
    osCMax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  3. #3
    New Member
    Join Date
    Nov 2004
    Posts
    23
    Rep Power
    0


    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?

  4. #4
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,501
    Rep Power
    567


    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 installation service - Have our professionals install osCmax on your server - same day service!
    osCmax 2.0 User Manual - the must have beginners guide to osCmax v2.0

    Stay Up To Date with everything osCMax:
    Free osCMax Newsletters - Security notices, New Releases, osCMax News
    osCMax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  5. #5
    New Member
    Join Date
    Nov 2004
    Posts
    23
    Rep Power
    0


    Default

    I have it set correctly. and it still isnt working.. Could it be server related?

  6. #6
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,501
    Rep Power
    567


    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 installation service - Have our professionals install osCmax on your server - same day service!
    osCmax 2.0 User Manual - the must have beginners guide to osCmax v2.0

    Stay Up To Date with everything osCMax:
    Free osCMax Newsletters - Security notices, New Releases, osCMax News
    osCMax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  7. #7
    New Member
    Join Date
    Nov 2004
    Posts
    23
    Rep Power
    0


    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

  8. #8
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,501
    Rep Power
    567


    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 installation service - Have our professionals install osCmax on your server - same day service!
    osCmax 2.0 User Manual - the must have beginners guide to osCmax v2.0

    Stay Up To Date with everything osCMax:
    Free osCMax Newsletters - Security notices, New Releases, osCMax News
    osCMax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  9. #9
    New Member
    Join Date
    Nov 2004
    Posts
    23
    Rep Power
    0


    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

  10. #10
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,501
    Rep Power
    567


    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 installation service - Have our professionals install osCmax on your server - same day service!
    osCmax 2.0 User Manual - the must have beginners guide to osCmax v2.0

    Stay Up To Date with everything osCMax:
    Free osCMax Newsletters - Security notices, New Releases, osCMax News
    osCMax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

Page 1 of 2 12 LastLast

Similar Threads

  1. Authorize.net Cryptic Error messages
    By Christy in forum osCmax v2 Installation issues
    Replies: 1
    Last Post: 12-21-2006, 02:37 PM
  2. Authorize.net error:This account has not been given....
    By TangledTech in forum osCMax v1.7 Installation
    Replies: 1
    Last Post: 07-31-2006, 11:40 PM
  3. Error received when accepting payment through authorize.net
    By bbsemail in forum osCommerce 2.2 Installation Help
    Replies: 3
    Last Post: 02-07-2005, 08:52 AM
  4. Authorize.net checkout error
    By toddhata in forum osCMax v1.7 Installation
    Replies: 5
    Last Post: 01-28-2005, 06:37 AM
  5. Authorize.net Checkout Error
    By mycustomweb in forum osCommerce 2.2 Modification Help
    Replies: 1
    Last Post: 11-25-2003, 06:57 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •