Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 2014
    Location
    Canada
    Posts
    31
    Plugin Contributions
    0

    Default Authorize.net wrong currency error 99

    Few weeks ago I have changed something in my setting as paypal was getting the wrong currency. My store is in CDN and paypal was charging customers USD dollars. I chagned someething and Paypal now works properly but Authorize.net stopped working. I am pretty sure it is because it is sending the wrong currency.


    [x_invoice_num] =>
    [x_duplicate_window] => 120
    [x_allow_partial_Auth] => FALSE
    [x_description] => Website Purchase from U-Brew Supply
    [x_currency_code] => USD
    [x_fp_sequence] => 55
    [x_fp_timestamp] => 1411063543
    [x_fp_hash] => 2d2519f997c4765a88e8c7344c75a2d8
    [x_show_form] => PAYMENT_FORM
    [x_receipt_link_method] => POST
    [x_receipt_link_text] => Click here to complete your order.

    the [x_currency_code] => USD

    need to say CDN i guess for cdn dollars.

    I am getting error 99, I issued a new key and hashtag. and talked to rep from authorize.net who informed me that my account can only accept CDN.

  2. #2
    Join Date
    Mar 2014
    Location
    Canada
    Posts
    31
    Plugin Contributions
    0

    Default Re: Authorize.net wrong currency from zencart error 99

    ok I have changed few lines in my authorizenet.php and it seems to work, but I am affraid it will mess other things up, and how did it get changed this way by itself. Something is not right here.
    I changed all the instances of USD to CAD in code bellow. lines 350 or so.

    // force conversion to USD
    if ($_SESSION['currency'] != 'CAD') {
    global $currencies;
    $submit_data_core['x_amount'] = number_format($order->info['total'] * $currencies->get_value('CAD'), 2);
    $submit_data_core['x_currency_code'] = 'CAD';
    unset($submit_data_core['x_tax'], $submit_data_core['x_freight']);
    }

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

    Default Re: Authorize.net wrong currency from zencart error 99

    .

    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. 2 Issues...Wrong Folder and Authorize.net AIM
    By KrisTX in forum Installing on a Linux/Unix Server
    Replies: 16
    Last Post: 4 Oct 2013, 07:50 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. Authorize.net details showing wrong
    By bench1254 in forum General Questions
    Replies: 1
    Last Post: 10 Feb 2009, 11:21 PM
  4. 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
  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

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