Results 1 to 3 of 3
  1. #1
    Join Date
    Jul 2012
    Posts
    16,732
    Plugin Contributions
    17

    Default [Done v1.5.4] default Authorizenet.php file does not hash x_currency_code

    As identified in this thread: http://www.zen-cart.com/showthread.p...Net-SIM-Issues

    A user of authorize.net (SIM) was receiving an error 99 from Authorize.net when trying to reach the point to obtain credit card information from a customer.

    Several different actions were attempted to try to resolve the issue (some that I suggested I admit were outrageous and unlikely to solve the situation, but seemed like could unexpectedly resolve the issue): Verifying the time_zone settings in multiple locations, attempting to adjust the time_zone to an alternate location, and adjusting the PHP check made in set_time_zone.php to name a few.

    The two solutions that independently worked were 1) to comment out x_currency_code at lines 343 and 381 of includes/modules/payment/authorizenet.php and 2) the following without the x_currency_code being commented out.


    Find line 385 that reads:

    Code:
    $submit_data_security =  $this->InsertFP(MODULE_PAYMENT_AUTHORIZENET_LOGIN,  MODULE_PAYMENT_AUTHORIZENET_TXNKEY,  number_format($order->info['total'], 2), $sequence);
    and change to:

    Code:
    $submit_data_security =  $this->InsertFP(MODULE_PAYMENT_AUTHORIZENET_LOGIN,  MODULE_PAYMENT_AUTHORIZENET_TXNKEY,  number_format($order->info['total'], 2), $sequence,  $submit_data_core['x_currency_code']); //mc12345678 hash the  currency_code.
    Some things of note, the system on which this was successful may have been unique, but this solution appears to fall in line with the guidance of the following post: https://support.authorize.net/authkb...=A569&actp=RSS

    At last attempt the above site did provide a security warning indicating the certificate was issued by an unknown issuer.

    Suggest this solution and issue be reviewed/evaluated for ZC 1.5.3+
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

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

    Default Re: default Authorizenet.php file does not hash x_currency_code

    Acknowledged. Planned for integration into v1.5.4
    .

    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.

  3. #3
    Join Date
    Dec 2014
    Location
    Florida
    Posts
    1
    Plugin Contributions
    0

    Default Re: default Authorizenet.php file does not hash x_currency_code

    Quote Originally Posted by DrByte View Post
    Acknowledged. Planned for integration into v1.5.4

    Thank you so much! I had the......... (99) This transaction cannot be accepted...... After much troubleshooting this article worked. Once I replaced the code on line 385 the error went away and I am now able to accept the payment in test mode. Thanks

 

 

Similar Threads

  1. Replies: 20
    Last Post: 7 Dec 2014, 11:29 AM
  2. v139h uploading artwork file (attribute) does not upload file
    By delia in forum General Questions
    Replies: 11
    Last Post: 1 Sep 2013, 08:41 PM
  3. Replies: 0
    Last Post: 27 Sep 2012, 11:57 PM
  4. v138a CSS file from class.cj_loader.php does not display
    By sbrown in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 2 May 2012, 10:50 PM
  5. Replies: 2
    Last Post: 27 May 2006, 02:21 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