Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NMM_Exchange.php non-USD conversion issues #36

Open
rmwb opened this issue Nov 26, 2021 · 0 comments
Open

NMM_Exchange.php non-USD conversion issues #36

rmwb opened this issue Nov 26, 2021 · 0 comments

Comments

@rmwb
Copy link

rmwb commented Nov 26, 2021

FYI
The free currency conversion API used in NMM_Exchange.php to convert non-USD totals back to USD for further conversion to crypto values, is currently offline/down. https://www.currencyconverterapi.com/server-status
There's backup code that uses fixer.io, but it is also offline/returning an error, because the hardcoded API key has reached its monthly usage limit.
"Your monthly usage limit has been reached. Please upgrade your Subscription Plan."

The result seems to be a zero total for all orders in all cryptocurrencies right now, assuming your WooCommerce currency setting is anything other than 'United States (US) Dollar'.

Also, the fixer.io code seems to have a logic error. It looks like it falsely assumes the results will be returned with a USD base rate, but the actual base rate on the free tier of fixer.io is EUR.
https://fixer.io/documentation#basecurrency

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant