- From: Guille Paz <notifications@github.com>
- Date: Sun, 22 May 2016 06:54:13 -0700
- To: w3c/browser-payment-api <browser-payment-api@noreply.github.com>
- Cc:
Received on Sunday, 22 May 2016 13:54:43 UTC
The spec says the amount should be: > A string containing the decimal monetary value. If a decimal separator is needed then the string must use a single U+002E FULL STOP character as the decimal separator. I think use amount in cents is better than decimal because different countries officially designate different symbols for the decimal mark. For example, German and Spanish use comma as decimal separator and period for thousands. ```js { "currency": "USD", "value" : "5500" } ``` Also, the following Payments API use amount in cents: - https://stripe.com/docs/api#charges - https://dev.recurly.com/docs/create-transaction - https://developers.getmango.com/en/api/charges/#the-object Thanks! --- 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
Received on Sunday, 22 May 2016 13:54:43 UTC