Zero Decimal Currencies

539 views
Skip to first unread message

Robin Williams

unread,
May 28, 2017, 8:55:04 AM5/28/17
to Stripe API Discussion
Is there a way of determining via the API if a currency is zero decimal?

If not, could something be added?

e.g. a new API call or [perhaps easier] an extra field be added to the country_spec object - say is_default_currency_zero_decimal

Thanks

Remi J.

unread,
May 28, 2017, 9:04:20 AM5/28/17
to api-d...@lists.stripe.com
Hey Robin,

It's definitely something we've thought about and I agree that the country specs could be the right place to ship this if we do, along with the minimum or maximum amounts for a given currency and/or payment method for example! We've also discussed the possibility of having a separate JSON file or resource that would contain some of this information and keep it up-to-date on our end.

We don't yet have plans to ship this just yet though but I'll raise it again to our engineering team. In the meantime, you should rely on our list on our support article [1].

Thank you for the feedback!
Remi


--
You received this message because you are subscribed to the Google Groups "Stripe API Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to api-discuss+unsubscribe@lists.stripe.com.
To post to this group, send email to api-d...@lists.stripe.com.
Visit this group at https://groups.google.com/a/lists.stripe.com/group/api-discuss/.

Robin Williams

unread,
May 28, 2017, 9:26:55 AM5/28/17
to Stripe API Discussion
Thanks Remi - that would be much appreciated.


On Sunday, May 28, 2017 at 2:04:20 PM UTC+1, Remi J. wrote:
Hey Robin,

It's definitely something we've thought about and I agree that the country specs could be the right place to ship this if we do, along with the minimum or maximum amounts for a given currency and/or payment method for example! We've also discussed the possibility of having a separate JSON file or resource that would contain some of this information and keep it up-to-date on our end.

We don't yet have plans to ship this just yet though but I'll raise it again to our engineering team. In the meantime, you should rely on our list on our support article [1].

Thank you for the feedback!
Remi

On Sun, May 28, 2017 at 3:01 AM, Robin Williams <ro...@soulcontractconnect.org> wrote:
Is there a way of determining via the API if a currency is zero decimal?

If not, could something be added?

e.g. a new API call or [perhaps easier] an extra field be added to the country_spec object - say is_default_currency_zero_decimal

Thanks

--
You received this message because you are subscribed to the Google Groups "Stripe API Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to api-discuss...@lists.stripe.com.

Michael

unread,
May 28, 2017, 10:52:37 AM5/28/17
to Stripe API Discussion
Here is some code to help normalize zero decimal currencies:


Hope this helps!

Robin Williams

unread,
May 28, 2017, 11:10:21 AM5/28/17
to Stripe API Discussion
Thanks Michael

Appreciated.

Although doing it is straightforward - having a reliable mechanism for capturing the currencies is the issue.

Regards

Robin
Reply all
Reply to author
Forward
0 new messages