Replies: 0
This I’mport plugin contains a small bug in files edd-iamport-normal.php
and edd-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']
with edd_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.