Hi,
I'm having an issue with using a store based in the UK with a US Authorize.net account.
The UK store is set to GBP as default currency. Authorize.net only accepts USD so I can set this in the order information that is sent to Authorize.net, but it will process everything using the same order total shown in GBP. So if someone buys something for 99 pounds it will send USD$99 to Authorize.net for processing.
A bad alternative is to have USD as default and then have users select GBP when the use the store, but since this is a UK only online store this is a far from ideal alternative
I have been looking at authorizenet_aim.php and see where the currency is set as well as where it is set at value 1.0000. I am hoping that someone knows a way to dynamically alter this in the info that is sent to authorize.net the same way it is dynamically altered on the store itself.
Thanks
I'm having an issue with using a store based in the UK with a US Authorize.net account.
The UK store is set to GBP as default currency. Authorize.net only accepts USD so I can set this in the order information that is sent to Authorize.net, but it will process everything using the same order total shown in GBP. So if someone buys something for 99 pounds it will send USD$99 to Authorize.net for processing.
A bad alternative is to have USD as default and then have users select GBP when the use the store, but since this is a UK only online store this is a far from ideal alternative
I have been looking at authorizenet_aim.php and see where the currency is set as well as where it is set at value 1.0000. I am hoping that someone knows a way to dynamically alter this in the info that is sent to authorize.net the same way it is dynamically altered on the store itself.
Thanks
Thank You Qphoria!
#2 worked perfectly.
I had already tried #1, but that was sending 1 for 1, in other words 1 pound was being sent and processed as 1 dollar. But the second solution worked perfectly (after removing solution#1).
Thanks again.
#2 worked perfectly.
I had already tried #1, but that was sending 1 for 1, in other words 1 pound was being sent and processed as 1 dollar. But the second solution worked perfectly (after removing solution#1).
Thanks again.
can we apply the same for 2CO Payment Module ?
متجر إنـشــاد | نختصر المسافات
http://www.inshadstore.com
Can someone help out with doing the same with a current version of OpenCart?
I need to run the store in Canadian dollars, but I get the "The supplied currency code is either invalid, not supported, not allowed for this merchant or doesn't have an exchange rate." error.

In OpenCart v1.5.3.1, the relevant lines in catalog/controller/payment/authorizenet_aim.php are:
Looking at the post above, I'm not sure what changes have to be made here. Default currency on the site is CAD, by the way.
Any help would be appreciated.
By the way, in OpenCart v1.5.3.1, the lines in catalog/controller/payment/sagepay.php are:
I need to run the store in Canadian dollars, but I get the "The supplied currency code is either invalid, not supported, not allowed for this merchant or doesn't have an exchange rate." error.

In OpenCart v1.5.3.1, the relevant lines in catalog/controller/payment/authorizenet_aim.php are:
Code: Select all
$data['x_amount'] = $this->currency->format($order_info['total'], $order_info['currency_code'], 1.00000, false);
$data['x_currency_code'] = $this->currency->getCode();
Any help would be appreciated.
By the way, in OpenCart v1.5.3.1, the lines in catalog/controller/payment/sagepay.php are:
Code: Select all
$data['Amount'] = $this->currency->format($order_info['total'], $order_info['currency_code'], $order_info['currency_value'], false);
$data['Currency'] = $order_info['currency_code'];
1. EDIT: catalog/controller/payment/authorizenet_aim.php
2. FIND TWICE:
3. REPLACE BOTH WITH:
2. FIND TWICE:
Code: Select all
$order_info['currency_code'], 1.00000,
Code: Select all
'USD', false,
Who is online
Users browsing this forum: No registered users and 7 guests