Hi Dr. Byte,
1. An ajax currency convertor would just allow them to see what the cost would be in their own currency. And a user could just add in any arbitrary amount they wanted.
2. My payment gateway only accepts Euro and no other currency (Realex). As my merchant account will only accept Euro anyway. Plus there is a problem with their option "Selected Currency".
It is caused by the bad code they supplied. Looks like they just used a version they had for OsCommerce. Actually there were a number of errors and still are a number of errors in their rubbish script.
If I just select Euro then the amount is converted to Euro before it gets to the payment gateway and the customer see a Euro amount they have to pay - might get a little confusing for some people.
Plus the store manager doesnt trust that the currencies will be updated regularly enough and correctly. So there are a number of reasons why I don't want to turn on the inbuilt Currency conversion.
Here is a snippet of Realex's script for your interest:
PHP Code:
function process_button() {
global $osC_Session, $order, $currencies;
if (MODULE_PAYMENT_REALEX_CURRENCY == 'Selected Currency') {
$my_currency = $osC_Session->value('currency');
} else {
$my_currency = substr(MODULE_PAYMENT_REALEX_CURRENCY, 5);
}
if (!in_array($my_currency, array('CHF', 'EUR', 'GBP', 'JPY', 'USD', 'SEK', 'HKD'))) {
$my_currency = 'USD';
}
Bookmarks