Fix for the gateway to take the correct currency
-
This I’mport plugin contains a small bug in files
edd-iamport-normal.php
andedd-iamport-subscription.php
. The bug causes the plugin to always take shop’s base currency, instead of the active currency, when sending payment data to I’mport servers. This works “by coincidence” in a “vanilla” EDD setup, because the base currency always matches the active one, but it fails in a multi-currency environment, where the active currency may or may not be the same as the base one.As we describe in our knowledge base, to fix the issue it should be sufficient to replace all instances of
$edd_options['currency']
withedd_get_currency()
. That will ensure that the correct currency is passed to I’mport during payment.To save you time, you can find a patched version of your plugin here: https://www.4shared.com/zip/-7lW9Gdlca/iamport-for-easy-digital-downl.html. It includes a Git repository, so that you can easily see the changes we made.
- The topic ‘Fix for the gateway to take the correct currency’ is closed to new replies.