Results 1 to 6 of 6
  1. #1
    Join Date
    Mar 2007
    Location
    Worcester UK
    Posts
    127
    Plugin Contributions
    0

    Default Authorize.net AIM module currency code invalid unresolved

    In Zen Cart 1.5. I am getting the error message when posting to Authorize.Net.

    (TESTMODE) The supplied currency code is either invalid, not supported, not allowed for this merchant or doesn't have an exchange rate. - Your credit card could not be authorized for this reason. Please correct the information and try again or contact us for further assistance.


    However, Dr Byte has affirmed on this thread,

    http://www.zen-cart.com/showthread.p...B-UK-customers

    "The AIM module in v1.5.0 automatically converts prices into USD before submission, so that transaction amounts are submitted in their USD equivalent (based on your store's exchange rate data)."


    I have looked at other threads, some advising editing the authorizenet_aim.php for global currencies

    global $currencies;
    $usd_transaction_value = $currencies->value(number_format($order->info['total'], 2), true, 'USD'
    and
    'x_amount' => $usd_transaction_value,


    but this appeared to make no difference.

    This is now an urgent issue, so any help on updates on this issue would be appreciated.
    Thanks
    kevin_a

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

    Default Re: Authorize.net AIM module currency code invalid unresolved

    Turn on Debug-Log-To-File (or to email) in that module, and then do a test transaction. Then post the log file's contents here.
    Also, contact your Authnet account representative and confirm what currency your account is configured for. They recently added support for additional currencies (for different countries), and if your account isn't configured for the currency you're submitting, you'll get errors. If your rep says it's configured for something other than USD, then some coding changes will be required to accommodate that: https://github.com/zencart/zencart/c...5c0319a9933be7
    .

    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
    Mar 2007
    Location
    Worcester UK
    Posts
    127
    Plugin Contributions
    0

    Default Re: Authorize.net AIM module currency code invalid unresolved

    hi Thanks for the reply.
    Here is the autorizenet log file.
    I haven't had a reply from authorize.net regarding the currency set up for my account.
    I have removed my phone, address and email field data as these are not an issue.


    May-03-2013 12:29:41
    =================================

    Response Code: 3.
    Response Text: (TESTMODE) The supplied currency code is either invalid, not supported, not allowed for this merchant or doesn't have an exchange rate.

    Sending to Authorizenet: Array
    (
    [x_login] => *******
    [x_tran_key] => *******
    [x_relay_response] => FALSE
    [x_delim_data] => TRUE
    [x_delim_char] => |
    [x_encap_char] => *
    [x_version] => 3.1
    [x_type] => AUTH_CAPTURE
    [x_method] => CC
    [x_amount] => 1.49
    [x_currency_code] => USD
    [x_card_num] => XXXXXXXXXXXXXXXXX0027
    [x_exp_date] => 0613
    [x_card_code] => ****

    ...
    kevin_a

  4. #4
    Join Date
    Mar 2007
    Location
    Worcester UK
    Posts
    127
    Plugin Contributions
    0

    Default Re: Authorize.net AIM module currency code invalid unresolved

    I should add that the site is in UK, and set up for GBP
    https://www.romseybaitandtackle.co.uk/
    kevin_a

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

    Default Re: Authorize.net AIM module currency code invalid unresolved

    You'll need to make the coding changes I mentioned in my prior post.
    .

    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.

  6. #6
    Join Date
    Mar 2007
    Location
    Worcester UK
    Posts
    127
    Plugin Contributions
    0

    Default Re: Authorize.net AIM module currency code invalid unresolved

    Very many thanks Dr. Byte.
    Although my 2 files were not exactly as you show on Github, I was able to make the appropriate changes, and the payment passed through to Authorize.net.


    Kevin
    kevin_a

 

 

Similar Threads

  1. Replies: 6
    Last Post: 6 Jul 2012, 06:25 AM
  2. authorize.net AIM response code 13 since update from 1.3.9d to 1.3.9h
    By billc108 in forum Built-in Shipping and Payment Modules
    Replies: 14
    Last Post: 5 Jun 2011, 08:23 PM
  3. Authorize.net : The supplied currency code is either invalid
    By dharma in forum Built-in Shipping and Payment Modules
    Replies: 12
    Last Post: 9 Mar 2008, 12:09 PM
  4. Authorize.net AIM error - supplied currency code is either invalid
    By pinixdesign in forum Built-in Shipping and Payment Modules
    Replies: 15
    Last Post: 18 Apr 2007, 06:36 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