Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2007
    Location
    Vancouver, Canada
    Posts
    1,547
    Plugin Contributions
    81

    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.

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

    Default Re: [BUG] Authorize.net AIM Helf for Review by Merchant

    Thanks. Most of this has already been reported and fixed in forum posts and committed into v155.

    But the part about the extra string being added and blowing out the db storage (if db storage is even turned on) has not.

    Will update v155 to prevent attempting to store the text comment in the bigint field.

    Thanks!
    .

    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.

 

 

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

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