Results 1 to 3 of 3
  1. #1
    Join Date
    Jun 2006
    Posts
    31
    Plugin Contributions
    0

    Default Pass currency to Authorize.net - Cart is in GBP but charge in USD!

    I was wondering whether anyone could tell me how to configure so that Authorize.net knows the charges from my shop, which has the default currency set to GBP, are to be processed in GBP as opposed to USD. I am doing an event registration shop for a UK event, but the company collecting is in the US, so the account is set up in USD.

    Under Modules > Payment I have the Authorize.net module installed (simple, not AIM), and under Localization > Currencies I have GBP as the default, value set to 1.0000.

    The confirmation email that comes from the store indicate the correct price in and total in GBP, i.e. 450, but then the transaction receipt email I get from Authorize.net says 450 USD!!! How do I tell it it's GBP, not USD?

    Please help!

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

    Idea or Suggestion Re: Pass currency to Authorize.net - Cart is in GBP but charge in USD!

    In the includes/modules/payment/authorizenet.php for Zen Cart v1.3.x, you will find the following on line 294:
    PHP Code:
            zen_draw_hidden_field('x_Amount'number_format($order->info['total'], 2)) . 
    add your site-wide currency code below it ... so line 294 becomes 2 lines, like this:
    PHP Code:
            zen_draw_hidden_field('x_Amount'number_format($order->info['total'], 2)) .
            
    zen_draw_hidden_field('x_currency_code''GBP') . 
    .

    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
    Jan 2004
    Posts
    66,364
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Pass currency to Authorize.net - Cart is in GBP but charge in USD!

    answered in your other post on this topic:
    http://www.zen-cart.com/forum/showth...572#post212572
    .

    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. Replies: 3
    Last Post: 4 Apr 2016, 02:26 AM
  2. Pass value of attribute to Authorize.net AIM
    By daisytwist in forum Built-in Shipping and Payment Modules
    Replies: 4
    Last Post: 6 Apr 2009, 11:18 PM
  3. How do set the currency to GBP, not USD?
    By jamesdavid in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 1
    Last Post: 16 Jun 2008, 02:31 PM
  4. default is GBP but keeps coming up in USD!!!
    By pinknfluffy29 in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 5
    Last Post: 2 Jun 2007, 06:44 AM
  5. Replies: 18
    Last Post: 1 Aug 2006, 07:14 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