Results 1 to 5 of 5
  1. #1
    Join Date
    Aug 2009
    Location
    North Idaho, USA
    Posts
    2,008
    Plugin Contributions
    1

    Default Auth.net SIM currency other than default receives "Not allowed" error

    zc 1.5.4
    php 5.5.30
    mySQL 5.6.27
    ZC auth.net SIM module

    Auth.net SIM returns an error message when a currency (CAD, AUD, GBP or Euro) other than default is being used within zencart.

    For some reason, I understood that zencart transmitted default currency to auth.net regardless of chosen currency.
    Has something changed? I don't recall customers having problems with currency issues in the past when choosing to pay via credit card, though most International customers use the default.

    The only debug file is what was transmitted TO Auth.net. Nothing is being transmitted back from Auth.net. The error is being presented in the Auth.net payment screen.


    Name:  AuthNetError.JPG
Views: 84
Size:  27.2 KB
    Rick
    RixStix (dot) com
    aka: ChainWeavers (dot) com

  2. #2
    Join Date
    Aug 2009
    Location
    North Idaho, USA
    Posts
    2,008
    Plugin Contributions
    1

    Default Re: Auth.net SIM currency other than default receives "Not allowed" error

    Just finished with Auth.net support and they say the transaction must come from zencart in the default currency of my merchant account which is USD.
    Rick
    RixStix (dot) com
    aka: ChainWeavers (dot) com

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

    Default Re: Auth.net SIM currency other than default receives "Not allowed" error

    Around line 385 in your SIM module code, you'll see a line like this:
    Code:
        if (!in_array($order->info['currency'], array('USD', 'CAD', 'GBP', 'EUR', 'AUD', 'NZD', $this->gateway_currency))) {
    I believe changing it to look like this should solve your problem:
    Code:
        if (!in_array($order->info['currency'], array('USD', $this->gateway_currency))) {
    .

    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.

  4. #4
    Join Date
    Aug 2009
    Location
    North Idaho, USA
    Posts
    2,008
    Plugin Contributions
    1

    Default Re: Auth.net SIM currency other than default receives "Not allowed" error

    Thank you DrByte,

    Tested with currency = CAD within zc. Currency appeared as USD in Auth.net. Processed by auth.net in USD. ZC order is in CAD.
    That might be confusing to customers whose order appears in a currency other than default, but at least the transaction is processed without error.

    Have coffee & donuts on me
    Last edited by RixStix; 17 Dec 2015 at 04:50 AM.
    Rick
    RixStix (dot) com
    aka: ChainWeavers (dot) com

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

    Default Re: Auth.net SIM currency other than default receives "Not allowed" error

    I believe I have a much more reliable fix ... which I've posted here: https://github.com/zencart/zencart/pull/720 ... and will be rolled into v1.5.5.
    .

    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. Force display of other currency than default?
    By JoeSoap in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 13
    Last Post: 22 Aug 2015, 11:54 AM
  2. v153 Auth.net SIM Error 99 Cannot be accepted
    By RixStix in forum Built-in Shipping and Payment Modules
    Replies: 11
    Last Post: 1 Nov 2014, 09:17 PM
  3. "Your session has expired" with Authorize.net SIM
    By HDG in forum Managing Customers and Orders
    Replies: 2
    Last Post: 12 Oct 2010, 01:48 AM
  4. Authorize.net SIM Working but AIM Always "Declined"
    By alexsbrown in forum Built-in Shipping and Payment Modules
    Replies: 5
    Last Post: 1 Feb 2009, 12:23 AM
  5. Can I make something other than "cheapest" be the default shipping rate?
    By netuser in forum Built-in Shipping and Payment Modules
    Replies: 5
    Last Post: 30 Jun 2008, 04:09 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