Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1
    Join Date
    Nov 2004
    Posts
    83
    Plugin Contributions
    0

    Default Authorize.net AIM Module does not process transactions

    I was getting the following error when clicking on the confirm order button: This account has not been given the permission(s) required for this request. - Your credit card could not be authorized for this reason. Please correct any information and try again or contact us for further assistance.

    I found some threads about this problem, and tried using some of the code fixes from there. I can now checkout, the order is recorded in the Zen admin, but I don't get a transaction with in the authorize.net account.

    Here is what I have in the code for lines 350-371:

    // SEND DATA BY CURL SECTION
    // Post order info data to Authorize.net, make sure you have cURL support installed

    unset($response);

    // The commented line below is an alternate connection method
    //exec("/usr/bin/curl -d \"$data\" https://secure.authorize.net/gateway/transact.dll", $response);

    $url = 'https://secure.authorize.net/gateway/transact.dll';

    $ch = curl_init();

    curl_setopt($ch, CURLOPT_VERBOSE, 1);
    curl_setopt ($ch, CURLOPT_HTTPPROXYTUNNEL, FALSE);
    curl_setopt ($ch, CURLOPT_PROXYTYPE, CURLPROXY_HTTP);
    //curl_setopt ($ch, CURLOPT_PROXY,"http://64.202.165.130:3128");
    curl_setopt ($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
    curl_setopt ($ch, CURLOPT_URL, $url);
    curl_setopt ($ch, CURLOPT_TIMEOUT, 120);

    $authorize = curl_exec($ch);
    curl_close ($ch);

    I commented out the goDaddy proxy - I contacted the host (cybrhost) and they said that they don't use any proxies. The guy also said he didn't know what curl was, so that concerns me a little. I found this in the Zen admin: Curl enabled libcurl/7.10.6 OpenSSL/0.9.7a ipv6 zlib/1.1.4

    I know there's still something wrong but I don't know what!

    I've made sure that SSL is turned on, the credit cards in the admin are turned on as well.

    I'm using version 1.3.5. I tried using the code from the 1.3.6 authorizenet_aim.php file and get the same error.
    Last edited by quixotica; 18 Dec 2006 at 02:06 AM.

  2. #2
    Join Date
    Nov 2004
    Location
    Norfolk, United Kingdom
    Posts
    3,036
    Plugin Contributions
    2

    Default Re: Authorize.net AIM Module does not process transactions

    I've made sure that SSL is turned on
    Does that mean that SSL is installed - either shared or full cert for your domain, and configured correctly?

    Vger

  3. #3
    Join Date
    Nov 2004
    Posts
    83
    Plugin Contributions
    0

    Default Re: Authorize.net AIM Module does not process transactions

    It's turned to True in the two configure files, and it is installed on the server.

  4. #4
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Authorize.net AIM Module does not process transactions

    If you're going to skip using the proxy by commenting out lines, I suggest you take care of all 3 proxy-related lines (even though you set the first to false):

    //curl_setopt ($ch, CURLOPT_HTTPPROXYTUNNEL, FALSE);
    //curl_setopt ($ch, CURLOPT_PROXYTYPE, CURLPROXY_HTTP);
    //curl_setopt ($ch, CURLOPT_PROXY,"http://64.202.165.130:3128");

    If your host tech support contact doesn't know what curl is, perhaps you can ask whether there's someone else there who does ?
    It may be necessary to get them to do a trace to see what's happening when your transactions are attempted.

    It might also be worth locating a curl test script (I believe one was pasted in a forum post sometime ago ... ) and seeing what it brings back...
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #5
    Join Date
    Nov 2004
    Posts
    83
    Plugin Contributions
    0

    Default Re: Authorize.net AIM Module does not process transactions

    I commented those out and that didn't fix it. I double checked on the SSL - I did have it incorrect, but now it is correct as per the host's instructions, and I'm still getting the same error.

    What specifically should I ask them to trace?

    I found the test scripts, and they don't return any errors.

  6. #6
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Authorize.net AIM Module does not process transactions

    Quote Originally Posted by quixotica View Post
    I was getting the following error when clicking on the confirm order button: This account has not been given the permission(s) required for this request. - Your credit card could not be authorized for this reason. Please correct any information and try again or contact us for further assistance.
    You said you used some "code" fixes to resolve this ? That error suggests that your authorize.net account hasn't been configured properly.

    What are the authorize.net people telling you about the transactions you're testing with? They should be able to see them hitting their servers, and likely can see more detailed error messages etc.


    If you turn on "Enable Database Storage" and peek at the contents of the authorizenet table via phpMyAdmin, what result messages do you see ?
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  7. #7
    Join Date
    Nov 2004
    Posts
    83
    Plugin Contributions
    0

    Default Re: Authorize.net AIM Module does not process transactions

    Here is the original code (that was giving me the error from my first message):
    // SEND DATA BY CURL SECTION
    // Post order info data to Authorize.net, make sure you have cURL support installed

    unset($response);

    // The commented line below is an alternate connection method
    //exec("/usr/bin/curl -d \"$data\" https://secure.authorize.net/gateway/transact.dll", $response);

    $url = 'https://secure.authorize.net/gateway/transact.dll';

    $ch = curl_init();
    curl_setopt($ch, CURLOPT_URL,$url);
    curl_setopt($ch, CURLOPT_VERBOSE, 0);
    curl_setopt($ch, CURLOPT_POST, 1);
    curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); /* compatibility for SSL communications on some Windows servers (IIS 5.0+) */
    if (CURL_PROXY_REQUIRED == 'True') {
    $proxy_tunnel_flag = (defined('CURL_PROXY_TUNNEL_FLAG') && strtoupper(CURL_PROXY_TUNNEL_FLAG) == 'FALSE') ? false : true;
    curl_setopt ($ch, CURLOPT_HTTPPROXYTUNNEL, $proxy_tunnel_flag);
    curl_setopt ($ch, CURLOPT_PROXYTYPE, CURLPROXY_HTTP);
    curl_setopt ($ch, CURLOPT_PROXY, CURL_PROXY_SERVER_DETAILS);
    }

    $authorize = curl_exec($ch);
    curl_close ($ch);

    Here is what I changed it to so it would at least let the order complete (but now it's not going to Authorize.net):

    // SEND DATA BY CURL SECTION
    // Post order info data to Authorize.net, make sure you have cURL support installed

    unset($response);

    // The commented line below is an alternate connection method
    //exec("/usr/bin/curl -d \"$data\" https://secure.authorize.net/gateway/transact.dll", $response);

    $url = 'https://secure.authorize.net/gateway/transact.dll';

    $ch = curl_init();

    curl_setopt($ch, CURLOPT_VERBOSE, 1);
    //curl_setopt ($ch, CURLOPT_HTTPPROXYTUNNEL, FALSE);
    //curl_setopt ($ch, CURLOPT_PROXYTYPE, CURLPROXY_HTTP);
    //curl_setopt ($ch, CURLOPT_PROXY,"http://64.202.165.130:3128");
    curl_setopt ($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
    curl_setopt ($ch, CURLOPT_URL, $url);
    curl_setopt ($ch, CURLOPT_TIMEOUT, 120);

    $authorize = curl_exec($ch);
    curl_close ($ch);

  8. #8
    Join Date
    Nov 2004
    Posts
    83
    Plugin Contributions
    0

    Default Re: Authorize.net AIM Module does not process transactions

    Also, I don't have access to phpMyAdmin with this host.

  9. #9
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Authorize.net AIM Module does not process transactions

    Quote Originally Posted by quixotica View Post
    ...what I changed it to so it would at least let the order complete (but now it's not going to Authorize.net)
    1. What exactly do you mean by this?
    Are you saying that after commenting those 3 lines that Zen Cart now stores the order as if it was paid-for, but you were never actually paid ?

    2. What is authorize.net tech support saying ? Are they seeing your transactions come through ? Are they telling you whethere they are seeing any errors?
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  10. #10
    Join Date
    Nov 2004
    Posts
    83
    Plugin Contributions
    0

    Default Re: Authorize.net AIM Module does not process transactions

    1. What exactly do you mean by this?
    Are you saying that after commenting those 3 lines that Zen Cart now stores the order as if it was paid-for, but you were never actually paid ?

    Yes, that's exactly what's happening.

    I got the host to tell me what was in the authorizenet table - it's getting a response code of 1. The authorization_type and transaction_id are blank

    I am working on contacting authorize.net

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v151 Duplicate transactions authorize.net AIM
    By badarac in forum Built-in Shipping and Payment Modules
    Replies: 9
    Last Post: 9 Aug 2016, 03:52 PM
  2. Authorize.net AIM Module Not showing up in Checkout
    By jamadri in forum Built-in Shipping and Payment Modules
    Replies: 3
    Last Post: 5 Sep 2013, 05:43 PM
  3. v150 Authorize.net AIM module not showing up as payment option
    By Skippersyacht in forum Built-in Shipping and Payment Modules
    Replies: 8
    Last Post: 27 Mar 2012, 09:50 PM
  4. Replies: 1
    Last Post: 29 Apr 2009, 07:58 PM
  5. Authorize.net AIM module not showing up as payment option
    By daisychick in forum Built-in Shipping and Payment Modules
    Replies: 6
    Last Post: 19 Dec 2006, 11:26 PM

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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR