-
Notifications
You must be signed in to change notification settings - Fork 19
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
Wrong parameters for Fadion\Fixerio\Exceptions\ResponseException([string $message [, long $code [, Throwable $previous = NULL]]]) #15
Comments
This was fixed with #12. You may need to update your dependency version of this package to |
updated. Now the problem is :
|
According to their API docs a Is the corresponding error message not there? |
Yeah I think so. I was doing USD to GBP and EUR. So no more free service here. That's a problem for us, we would have to develop own lib for that. |
It's simple enough to convert to another base. You could do so using this well designed PHP money library or simply re-base the rates yourself using something like so: $rates = [
'USD' => .9,
'EUR' => 1,
// ...
];
$base = $rates['USD'];
$rebasedConversionRates = array_map(function (string $rate) use ($base) {
return bcdiv($rate, (string) $base, 16);
}, $rates); I'm currently working on an integration library for fixers API and the money lib but that's a few weeks out still. Edit: fixed the snippet |
I did upgrade to version to 2 also created a key but now I am facing this problem.
How to solve?
this is happening on first example from your manual.
The text was updated successfully, but these errors were encountered: