If this is your first visit, check our documentation. To post, register or login.
Forums / Setting Up Your Zen Cart Products / Currencies & Sales Taxes, VAT, GST, etc. / Pass currency to Authorize.net - Cart is in GBP but charge in USD!

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

Locked

Started by pioupioun on 6 Jun 2006, 12:03 AM · Views: 5,872

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
6 Jun 2006, 12:03 AM
#1
pioupioun avatar

pioupioun

New Zenner

Join Date:
Jun 2006
Posts:
31
Plugin Contributions:
0

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!

7 Jun 2006, 5:50 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

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 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
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.

7 Jun 2006, 6:09 AM
#3
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

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/showthread.php?p=212572#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.