RubyMoney / monetize

A library for converting various objects into `Money` objects.
MIT License
430 stars 107 forks source link

CDN isn't recognized as Canadian Currency #128

Closed devonpmack closed 5 years ago

devonpmack commented 5 years ago

Was trying to parse prices from amazon in Canada and they use CDN instead of CAD as the identifier.

To reproduce: "CDN$ 5.00".to_money Result: Monetize::ParseError Exception: Unknown currency 'cdn'

antstorm commented 5 years ago

What is CDN? It's not listed as part of the ISO 4217. You can alway define your own currency with Money::Currency.register

devonpmack commented 5 years ago

Thanks!