I reply to all queries on the forums and via email, once per day, Monday to Friday (not weekends).

If you are new here, please see some information on how to ask for support. Thank you!

Reply To: I would like to add another provider for an exchange rate

dashed-slug.net Forums General discussion I would like to add another provider for an exchange rate Reply To: I would like to add another provider for an exchange rate

#6664
alexg
Keymaster

Hello,

You can see some example code on how to provide an exchange rate to the plugin, here: https://gist.github.com/alex-georgiou/492196184f206002c864225180ca8fbb

Copy this file into your wp-content/plugins directory, and edit the part where the value is set. You might need to use php curl (requires the module to be installed) or file_get_contents (requires allow_url_fopen), or better yet, use wp_remote_get().

Then, activate the plugin from your plugins list in WordPress admin.

You can then go to “Wallets” -> “Exchange Rates” and hit the “Clear/Refresh data now!” button.

If all works correctly, the value should appear in “Wallets” -> “Exchange Rates” -> “Exchange rates debug views” -> “Exchange rates”.

Let me know if you get stuck or need help with anything.

with regards