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

Unknown currency code: CNH #86

Closed
mubashar-mtp opened this issue Mar 22, 2024 · 2 comments
Closed

Unknown currency code: CNH #86

mubashar-mtp opened this issue Mar 22, 2024 · 2 comments

Comments

@mubashar-mtp
Copy link

exception: "Brick\Money\Exception\UnknownCurrencyException"
file: "/vendor/brick/money/src/Exception/UnknownCurrencyException.php"
line: 14
message: "Unknown currency code: CNH"

@Wojtazzzz
Copy link

@mubashar-mtp library supports only ISO 4217 standard. CNH is not in this standard. But you can always create custom instance of this currency: https://github.com/brick/money?tab=readme-ov-file#custom-currencies

@BenMorel
Copy link
Member

BenMorel commented Apr 6, 2024

Exactly. Our currency list comes from this list of ISO 4217 currencies, and as you can see, CNH is not in it. See @Wojtazzzz's suggestion to use it with brick/money.

@BenMorel BenMorel closed this as completed Apr 6, 2024
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

3 participants