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

Zero currency converter #1463

Open
itaied246 opened this issue Jun 30, 2022 · 2 comments
Open

Zero currency converter #1463

itaied246 opened this issue Jun 30, 2022 · 2 comments

Comments

@itaied246
Copy link

Is your feature request related to a problem? Please describe.

Working with multiple currencies is difficult since there are zero decimal currencies.
We have to create and calculate the conversions and mappings, and it seems like a repetitive task that every Stripe customer has to manage.

Describe the solution you'd like

Add zero decimal converter function (for example, https://www.npmjs.com/package/zero-decimal-currencies).
I don't want to use external unsupported libraries, I prefer using Stripe's implementation.

Describe alternatives you've considered

No response

Additional context

No response

@remi-stripe
Copy link
Contributor

@itaied246 We don't have plans to add something like this in the near future at least. We don't want to hardcode the list in the libraries as they would be wrong for all users once we add new currencies that are zero decimal. A possibility would be to add an API for this that the library could hit, so that even as we add new currencies it still stays up to date.

I'll tag as future and we'll see if we gather more interests but we've only seen a handful of asks for something like this over the years.

@remi-stripe remi-stripe self-assigned this Jun 30, 2022
@KeneHermitCoder
Copy link

KeneHermitCoder commented Dec 17, 2023

An API that helps you get all supported currencies (each with properties to determine if it is a zero-decimal or not) will be highly appreciated.
Another additional feature could be the ability to fetch supported currencies based on the different properties listed above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants