Hello,
like I promisse (a litle late ) here is what I found out
If we do this below we can change the currency for a default one if it dosent support on the Gateway.
(now it only needs a Summary->Total function to convert the choosen currency total to the default gateway currency. It will take more time for me to detect and implement the conversion rate)
Open: plugins/order/order_form_controller.php
line 592 find:
if ($currency == null)
Change to:
$default_currency = "USD"; // put here your default gateway currency to convert if it dosent exists
if ($currency == null)
on line 606 find:
// Fetch merchant gateway for this currency
$merchant_gateway = $this->GatewayManager->getInstalledMerchant($this->company_id, $currency, null, true);
Replace with:
// Fetch merchant gateway for this currency
$merchant_gateway = $this->GatewayManager->getInstalledMerchant($this->company_id, $currency, null, true);
if (!$merchant_gateway)
$merchant_gateway = $this->GatewayManager->getInstalledMerchant($this->company_id, $default_currency, null, true);
$currency = $default_currency;
Find on line 624:
$gw = $this->GatewayManager->getInstalledNonmerchant($this->company_id, null, $gateway->gateway_id, $currency);
if ($gw)
$nonmerchant_gateways[] = $gw;
Replace with:
$gw = $this->GatewayManager->getInstalledNonmerchant($this->company_id, null, $gateway->gateway_id, $currency);
if (!$gw)
$gw = $this->GatewayManager->getInstalledNonmerchant($this->company_id, null, $gateway->gateway_id, $default_currency);
$currency = $default_currency;
if ($gw)
$nonmerchant_gateways[] = $gw;
I hope that helps
But ofcourse with ould be great to have a defaul option to select a "default" currency for each Payment gatway that make the convertion from the client choosent currency and display on the order summary and on the invoice something like:
$100 USD (converted to £78.73 for payment gateway support)