stripe-node icon indicating copy to clipboard operation
stripe-node copied to clipboard

Zero currency converter

Open itaied246 opened this issue 2 years ago • 2 comments

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

itaied246 avatar Jun 30 '22 08:06 itaied246

@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 avatar Jun 30 '22 15:06 remi-stripe

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.

KeneHermitCoder avatar Dec 17 '23 09:12 KeneHermitCoder