Re: [w3c/browser-payment-api] Should the amount be in decimal or cents? (#204)

@pazguille 

> I think use amount in cents is better than decimal because different countries officially designate different symbols for the decimal mark

That would leave us in the odd position of having to decide exactly which currency unit we're using for each currency. The major unit -- dollar for USD, yen for JPY, krona for SEK -- is pretty unambiguous. But minor units become tricky. In your proposal, does SEK use krona or the (functionally deprecated but still legal) öre? Is the number for JPY in yen, sen, or rin?

Even harder: for the currency MRO, would your scheme indicate the price in ouguiya, khoums (1/5th of an ouguiya), or some other scheme, like 1/10th or 1/100th of an ouguiya?

How do we handle transitions that deprecate a minor unit of currency in favor of using its major unit instead? I would think that the potential for being off by factors of 10, 100, or 1000 would be potentially catastrophic for one party or the other in a transaction.

This seems to open up an insanely labyrinthine can of worms for a benefit that hasn't really been explained.

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/browser-payment-api/issues/204#issuecomment-220854080

Received on Sunday, 22 May 2016 20:24:44 UTC