问题描述
我目前正在编写代码以从不同的支付处理器迁移到 Stripe.
I am currently writing the code to migrate to Stripe from a different payment processor.
我知道当货币是美元时,stripe 使用美分.所以条纹(1000 美元) == 10.00 美元.对于欧元,我假设 stripe(1000 EUR) == € 10.00.
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.
但是日元呢?100 日元大约是 1 美元.那么我是否发送 Stripe 10000 日元来获得 100 日元 ~= 1 美元.我是否需要发送 Stripe 100 日元才能获得 100 日元 ~= 1 美元?
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?
有特殊的除数吗?对于任何货币,所有东西都以 100/ths 计价吗?我在文档中找不到答案,我不想向日本人收取 0.1 美元或 1000 美元的 10 美元服务费用.
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.
AED 是如何计价的.他们使用 1/10 作为最小单位/硬币.我应该乘以 10 吗?
How is AED denominated. They use 1/10ths as the smallest unit / coinage. Should I multiply by 10?
推荐答案
所有金额均采用最小通用货币单位".虽然在大多数地方这将是美分,但在日本,他们的货币没有小数,因此金额=1(1 日元),因为 ¥1 是最小的货币单位.
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.
其他信息可在本文档一>.
这篇关于Stripe Currency - 所有金额都是美分/100,还是取决于货币?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!