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

Bugfix to make exchange rate data with fixer.io work again #2694

Merged
merged 9 commits into from
Nov 16, 2022

Conversation

dbachmann
Copy link
Contributor

Description (*)

A customer of mine wanted to update the exchange rates in his shop. I wanted to use fixer.io but I got an error. So I looked into the code and looked into the documentation of fixer which is now part of apilayer.com. I changed the api url and a parameter name. When I entered my api key and tested this, everything worked like charm and I got the correct exchange rates.

Manual testing scenarios (*)

  1. Register at https://apilayer.com and get an api key
  2. Go to System > Configuration > General > Currency Setup > Fixer API / Apilayer.com. Enable this and enter your api access key and save.
  3. Go to System > Manage Currency > Rates and select "Fixer API / Apilayer.com" as import service. Click on import.

@github-actions github-actions bot added the Component: Directory Relates to Mage_Directory label Nov 8, 2022
@elidrissidev
Copy link
Member

elidrissidev commented Nov 8, 2022

I'm looking at the documentation at https://fixer.io/documentation, and I can see they still mention the current URL in their examples (only difference is http vs https). What error did you get when using it?

Screen Shot 2022-11-08 at 1 10 58 PM

@dbachmann
Copy link
Contributor Author

@elidrissidev I've tried this url at first but it didn't work. When you want to get an api key from fixer.io you will be redirected to apilayer.com. So you have to use the new url.

@elidrissidev elidrissidev self-requested a review November 9, 2022 14:12
@sreichel
Copy link
Contributor

Tested and confirmed. @dbachmann opened PR at your repo.

@dbachmann
Copy link
Contributor Author

@sreichel Tested your code. Works perfectly. Good job.

@elidrissidev elidrissidev merged commit fa5f628 into OpenMage:1.9.4.x Nov 16, 2022
@github-actions
Copy link
Contributor

Unit Test Results

1 files  1 suites   0s ⏱️
0 tests 0 ✔️ 0 💤 0 ❌
7 runs  5 ✔️ 2 💤 0 ❌

Results for commit fa5f628.

@dbachmann dbachmann deleted the Bugfix_for_Fixer.io branch November 16, 2022 12:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug confirmed Component: Directory Relates to Mage_Directory
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants