I am trying to make a dynamic price convertion on a payment page.
I am using the fixer.io API.
This function gets the symbol(USD/EUR etc.) and parses it in to the URL.
i have done a console.log of the fullUrl variable and pasted it on the browser, and worked great:
So i don’t this the problem is at the request.Since the result is correct.
Am i using the fetch API incorrectly?
If i just change the url to " https://api.fixer.io/ "…(which is the old one and will stop working on June) it all works great…
Hi Maria!
Well, it seems like your code is fine which means that if the old API works and the new one isn’t, the problem is indeed with the API service. You should contact with the supplier and check with them.
Best of luck!
Doron. 
Hello and thank You for your answer!!! I have tested the New API fullUrl link and it returns the JSON correctly…The screenshoot of the JSON is from the New API. I am doing something wrong on handling it…