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

UnknownCurrencyException for custom currency #6

Open
zefcarried opened this issue Sep 7, 2023 · 0 comments
Open

UnknownCurrencyException for custom currency #6

zefcarried opened this issue Sep 7, 2023 · 0 comments

Comments

@zefcarried
Copy link

Hello,

I was hoping to use your package with the bavix/laravel-wallet package, but ran into an issue when trying to access a price with a custom currency name.

I was able to create prices using a custom currency without any issues, but when I tried to access $model->price I received the UnknownCurrencyException.

Is there any chance you could modify this package so it could work with custom currencies while keeping most of the functionality in-tact? Perhaps a config value could be used (which defaults to false) that, if set to true, does not attempt to lookup a valid currency code?

Thanks in advance!

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