Results 1 to 2 of 2

Threaded View

  1. #1
    Join Date
    Apr 2007
    Location
    Vancouver, Canada
    Posts
    1,564
    Plugin Contributions
    71

    Default [Done v1.5.5] Authorize.net AIM Helf for Review by Merchant

    In authorizenet_aim.php if the $response_code = 4 the module sets an error message and denies the order even though the transaction has gone through successfully.

    The fix is to replace line 428:

    PHP Code:
    if ($response_code != '1') { 
    With:

    PHP Code:
    if ($response_code != '1' && $response_code != '4') { 
    Additionally, the plugin adds some text to the transaction ID on line 414:

    PHP Code:
    $this->transaction_id .= ' ***NOTE: Held for review by merchant.'
    Unfortunately the column type is BINGINT(20) and will not accept this value causing a fatal error. Fixing the column type allows the logging function to work but the order will still fail due to the first bug described above.

    The solution to the second issue is to change the line to read:
    PHP Code:
    $this->transaction_comment ' ***NOTE: Held for review by merchant.'
    Then replace line 444:
    $sql = $db->bindVars($sql, ':orderComments', 'Credit Card payment. AUTH: ' . $this->auth_code . '. TransID: ' . $this->transaction_id . '.', 'string');

    With:
    PHP Code:
    $sql $db->bindVars($sql':orderComments''Credit Card payment.  AUTH: ' $this->auth_code '. TransID: ' $this->transaction_id $this->transaction_comment '.''string'); 
    It might also be a good idea to change line 687 from:
    PHP Code:
    $sql $db->bindVars($sql':transID'$this->transaction_id'string'); 
    to:
    PHP Code:
    $sql $db->bindVars($sql':transID'$this->transaction_id'integer'); 
    This would at least stop any fatal errors.
    Last edited by numinix; 3 Mar 2016 at 11:50 PM.

 

 

Similar Threads

  1. v155 [Done v155a] Typo in Authorize.net AIM Module
    By numinix in forum Bug Reports
    Replies: 1
    Last Post: 5 May 2016, 04:47 AM
  2. Replies: 6
    Last Post: 6 Jul 2012, 06:25 AM
  3. Replies: 1
    Last Post: 29 Apr 2009, 07:58 PM
  4. Authorize.net AIM - error occurred trying to report this transaction to the merchant.
    By danderson421 in forum Built-in Shipping and Payment Modules
    Replies: 7
    Last Post: 15 Jan 2008, 11:14 PM
  5. Authorize.net (AIM) need Tranaction ID and Auth Code on merchant emails
    By jeffmic in forum Templates, Stylesheets, Page Layout
    Replies: 13
    Last Post: 31 Oct 2006, 07:19 AM

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