Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1
    Join Date
    Nov 2006
    Posts
    512
    Plugin Contributions
    0

    Default Authorize.net : The supplied currency code is either invalid

    My ZC is not translating currencies into USD before transmission to Authorize.net.

    Is there a setting I missed? or will this work when I go live?

    I have authorize.net (AIM) set to production, and authorize.net's gateway set to test mode.

    I have the default currency in USD, no other languages, running ZC 1.3.8a

    ex: $6 product:

    USD (accepted):
    Response Code: 1.
    Response Text: (TESTMODE) This transaction has been approved.

    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] => 6.00
    [x_currency_code] => USD
    GBP:
    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] => 6.00
    [x_currency_code] => GBP

    EURO:
    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] => 6.00
    [x_currency_code] => EUR

    From Merchant support at Authorize.net:

    *3*|*1*|*39*|*(TESTMODE) The supplied currency code is either invalid, not supported, not allowed for this merchant or doesn't have an exchange rate: Error 39 only brings up that text, we have no work around documents for that error. Apparently it does not appear that the correct currency code is being submitted to Authorize.Net. You will most likely want to either remove the currency code variable, or review our implementation guide at [ http://developer.authorize.net/guides/ ] to be sure that the cart is correctly integrated with Authorize.Net.

  2. #2
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Authorize.net : The supplied currency code is either invalid

    Authorize.net only supports USD.
    .

    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
    Nov 2006
    Posts
    512
    Plugin Contributions
    0

    Default Re: Authorize.net : The supplied currency code is either invalid

    I was under the impression that ZC translated other currenices into USD before transmission:

    Authorize.net *only* processes in USD at the present time.
    Their parent company, CyberSource allows processing in alternate currencies.
    You might want to talk to your Authorize.net representative for alternate options.

    The x_currency_code field is currently not used, according to the technical integration staff I just spoke to.

    Zen Cart is translating the purchase amount to USD before submission, based on your currency exchange rates set in your admin area.

  4. #4
    Join Date
    Nov 2006
    Posts
    512
    Plugin Contributions
    0

    Default Re: Authorize.net : The supplied currency code is either invalid

    I ran some more tests and still have the same results as above.

    Does ZC translate currencies before transmission? I read some previous posts that led me to that conculsion.

    And if so, with USD as my default currency, could that amount be sent in USD to Authorize.net ?

    sorry if I missed something here...

  5. #5
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Authorize.net : The supplied currency code is either invalid

    Yes, it's supposed to convert to USD before submitting for processing.
    .

    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
    Nov 2006
    Posts
    512
    Plugin Contributions
    0

    Default Re: Authorize.net : The supplied currency code is either invalid

    Yay! however, why isn't it doing that with my authorize.net?

    I did a uninstall/re-install of Authoroize.net for 1.3.8a recently and have updated by currencies in the admin.

    Did I miss a setting somewhere?

    It seems to work ok with PPE when I select send to paypal as USD...

  7. #7
    Join Date
    Nov 2006
    Posts
    512
    Plugin Contributions
    0

    Default Re: Authorize.net : The supplied currency code is either invalid

    I tried an un-install/re-install of authorize.net (Aim) to hopefully get this working.

    I still get the above error, however ZC is now translating the currencies into USD, but getting hung up on the currency code:

    same $100 item:

    cart amount: 53 GBP

    Code:
    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_ONLY
    [x_method] => CC
    [x_amount] => 100.00
    [x_currency_code] => GBP
    cart amount: €70.88
    Code:
    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_ONLY
    [x_method] => CC
    [x_amount] => 100.00
    [x_currency_code] => EUR
    cart amount: Amount $100 USD:

    Code:
    Response Code: 1.
    Response Text: (TESTMODE) This transaction has been approved.
    
    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_ONLY
    [x_method] => CC
    [x_amount] => 100.00
    [x_currency_code] => USD
    --------

    Running ZC 1.3.8a with authorize.net gateway in TEST MODE

    My ZC Settings:

    Code:
    Enable Authorize.net (AIM) Module
    True
    
    Login ID
    XXXXXXXXXXXXX
    
    Transaction Key
    ****************
    
    MD5 Hash
    ***************
    
    Transaction Mode
    Production
    
    Authorization Type
    Authorize
    
    Enable Database Storage
    False
    
    Customer Notifications
    False
    
    Merchant Notifications
    True
    
    Request CVV Number
    True
    
    Sort order of display.
    10
    
    Payment Zone
    --none--
    
    Set Completed Order Status
    default
    
    Set Refunded Order Status
    Pending [1]
    
    Debug Mode
    Log and Email
    Do I have a bug? or is there an incorrect setting staring in me in the face somewhere?

  8. #8
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Authorize.net : The supplied currency code is either invalid

    You might have a bug.
    Try commenting out the line that references x_currency_code in the payment module, by adding // at the beginning of the line.
    .

    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.

  9. #9
    Join Date
    Nov 2006
    Posts
    512
    Plugin Contributions
    0

    Default Re: Authorize.net : The supplied currency code is either invalid

    line 333: already commented out on

    includes/modules/payment/authorizenet.php

    adding new comments to line 315 :

    /includes/modules/payment/authorizenet_aim.php

    and line 330:

    /includes/modules/payment/authorizenet_echeck.php

    cart amount: 53 GBP

    Code:
    Response Code: 1.
    Response Text: (TESTMODE) This transaction has been approved.
    
    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_ONLY
    [x_method] => CC
    [x_amount] => 100.00
    [x_card_num] => XXXXXXXXXXXXXXXXXXX1111


    Yaaaaaaaaaaaaaaaaaaaaaaaaaaaayyyyyyyyyyyyyyyyyyyy!

    Thank you DrByte!

  10. #10
    Join Date
    Nov 2006
    Posts
    512
    Plugin Contributions
    0

    Default Re: Authorize.net : The supplied currency code is either invalid

    ..............yaaaaaaaaaaaaaaaayyyyyyyyyyyyyyyyyyy!
    Last edited by dharma; 9 Feb 2008 at 01:42 AM. Reason: not enough enthusiasm in last post

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Authorize.net wrong currency error 99
    By lukaswlu in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 22 Sep 2014, 08:42 PM
  2. Authorize.net AIM module currency code invalid unresolved
    By kevin_a in forum Addon Payment Modules
    Replies: 5
    Last Post: 3 May 2013, 11:35 PM
  3. Replies: 6
    Last Post: 6 Jul 2012, 06:25 AM
  4. Authorize.net : How can I do whether the credit card is valid or invalid?
    By kJohns in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 18 May 2009, 08:11 AM
  5. 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

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