Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
447 views
in Technique[技术] by (71.8m points)

Stripe Currency - Are all amounts in cents / 100ths, or does it depend on currency?

I am currently writing the code to migrate to Stripe from a different payment processor.

I know that when the currency is USD, stripe uses cents. So stripe(1000 USD) == $10.00. Same for Euros I assume stripe(1000 EUR) == € 10.00.

But what about JPY? 100 JPY is roughly $1. So do I send Stripe 10000 JPY to get 100 Yen ~= $1. Do I send Stripe 100 JPY to get 100 Yen ~= $1?

Is there a special divisor? Is everything denominated in 100/ths for any currency? I can't find an answer in the documentation, and I don't want to charge Japanese people $0.1 or $1000 for a $10 USD service.

How is AED denominated. They use 1/10ths as the smallest unit / coinage. Should I multiply by 10?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

All amounts are in the "smallest common currency unit". While in most places this would be cents, in Japan there is no decimal for their currency so amount=1 (1 JPY), since ¥1 is the smallest currency unit.

Additional info can be found at this doc.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...