#twiddlecoding
1 messages ยท Page 1 of 1 (latest)
๐ happy to help
thanks!
you can learn all about currencies here https://stripe.com/docs/currencies
I see. So I would need to check for the Zero-decimal currencies and treat them differently
Is it true that every currency except the Zero-decimal ones should have two decimals?
if i fetch a price in the other currencies, i should put the last two digits in the integer as after the decimal
in the API you don't pass in decimals
instead you pass in the amount in cents
so 10$ becomes 1000
I know, but when fetching a price, and I want to present it
should i precent every currency with two decimals, except the Zero-decimal ones?
let me know if you need any more help
There seem to be three decimal currencies as well, so there are three types then?
and there are special cases
๐
it really depends on what currencies you want to support
but all of the information regarding those can be found on the same page I shared earlier