Jump to content

Need help restricting currency for payment modules


Recommended Posts

Hi all,

 

I use two free modules that allow me to take payments with iDEAL (Dutch payment system) and Sofortbanking (German payment system). Both modules work fine except for one major problem - both payment systems only accept Euros but the currency cannot be restricted in the usual way in the BO (Payment > currency restrictions). If a customer lands on the site in the default currency (GBP) and selects one of these modules to make the payment it just assumes the currency is in Euros. So if the amount is 100 GBP, the amount actually paid is 100 EUR!

 

What I need, therefore, is to be able to restrict the currency to EUR for these modules. Preferably the currency would just be converted into Euros automatically once the customer selects either module, but if this isn't possible/too difficult an error message telling the customer to change the currency manually would be ok.

 

I've looked at the php files of both modules (attached) where this line is found:

 

// Only EURO's are allowed!

$this->currencies = false;

$this->currencies_mode = 'radio';

 

I've changed this to:

 

$this->currencies = true;

 

This makes it configurable in the BO but has no effect in the FO.

 

I've contacted the developer but I'm getting no response but as they are free modules I can't complain. I'm posting this here first in case there is a simple solution that someone can help me with but if it requires quite a lot of work/nobody can help I'll move it to the job offers section as it's becoming a real problem.

 

Thanks in advance

idealcheckoutideal.phpidealcheckoutdirectebanking.php

Edited by pel024 (see edit history)
Link to comment
Share on other sites

×
×
  • Create New...