[w3c/payment-request] validate PaymentCurrencyAmount.currency (closes #490) (#567)

* Hooks into ECMAScript's Intl's `IsWellFormedCurrencyCode`.
* Internally changes currencies into canonical form (upper case).
* Groups checking and normalization algorithms for "is valid amount" and "is valid total" - reducing a fair bit of spec text. 
* Relocates "valid decimal monetary value" to `PaymentCurrencyAmount`.
* Cites [[ECMASCRIPT]], instead of obsolete [[ECMA-262-2015]]. 
You can view, comment on, or merge this pull request online at:

  https://github.com/w3c/payment-request/pull/567

-- Commit Summary --

  * validate PaymentCurrencyAmount.currency (closes #490)

-- File Changes --

    M index.html (288)

-- Patch Links --

https://github.com/w3c/payment-request/pull/567.patch
https://github.com/w3c/payment-request/pull/567.diff

-- 
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/pull/567

Received on Monday, 31 July 2017 05:23:29 UTC