Re: [w3c/payment-request] Are integer values for PaymentCurrencyAmount.value left as integers? (#624)

> If I were to type “10” in USD, would the merchant receive “10” or “10.00”?

10 goes to the API - not to the merchant. 

For "basic-card", "USD" and "10" is formatted a "USD$10" or whatever the OS convention is. 

For a tokenized payment handler, it will need to interpret "US" and "10" appropriately. It's outside the scope of the API. We don't touch the values or change them... we only validate them.  

 > Seems like the merchant would receive 10.00

In the case of basic card, the merchant gets a credit card details - and it's their responsibility to charge the correct amount. 
 
In the case of a tokenized payment, see above. 

> So is there any harm in using the convention most payment processors follow ?

It's the merchant's responsibility to manage currencies and values. Same reason we don't sum up totals, etc.   

-- 
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/payment-request/issues/624#issuecomment-331347018

Received on Friday, 22 September 2017 04:28:32 UTC