I would like to add the ZAR to the list of available currencies in the PayPal plugin. I can do this by hard coding.
I add 'ZAR' to PHPPlugin->lib.php->enrol_paypal_plugin->get_currencies->$codes
However this is hard coding and I have been told to stay away from this in my code. Is there a more elegant and reliable method or am I limited to hard coding.
(Also will upgrading the plugin force me to re-add this code)
Thank you