diff --git a/specs/paymentrequest.html b/specs/paymentrequest.html index f0734b71..5391e7fe 100644 --- a/specs/paymentrequest.html +++ b/specs/paymentrequest.html @@ -295,17 +295,17 @@

PaymentRequest constructor

{ "id": "basket", "label": "Sub-total", - "amount": { "currencyCode": "USD", "value" : "55.00" }, // US$55.00 + "amount": { "currency": "USD", "value" : "55.00" }, // US$55.00 }, { "id": "tax", "label": "Sales Tax", - "amount": { "currencyCode": "USD", "value" : "5.00" }, // US$5.00 + "amount": { "currency": "USD", "value" : "5.00" }, // US$5.00 }, { "id": "total", "label": "Total due", - "amount": { "currencyCode": "USD", "value" : "60.00" }, // US$60.00 + "amount": { "currency": "USD", "value" : "60.00" }, // US$60.00 } ] } @@ -578,7 +578,7 @@

Internal Slots

CurrencyAmount

 dictionary CurrencyAmount {
-  required DOMString currencyCode;
+  required DOMString currency;
   required DOMString value;
 };
       
@@ -587,19 +587,20 @@

CurrencyAmount

The following fields MUST be supplied for a CurrencyAmount to be valid:

-
currencyCode
+
currency
- currencyCode is a string containing a three-letter alphabetic code for the - currency as defined by [[!ISO4217]]. For example, "USD" for US Dollars. + currency is a string containing a currency identifier. The most common + identifiers are three-letter alphabetic codes as defined by [[!ISO4217]] (for example, + "USD" for US Dollars) however any string is considered valid and + user agents MUST not attempt to validate this string.
value
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. The string MUST begin - with a single U+002D HYPHEN-MINUS character if the value is negative. All other characters must + MUST use a single U+002E FULL STOP character as the decimal separator. All other characters must be characters in the range U+0030 DIGIT ZERO (0) to U+0039 DIGIT NINE (9).
- The string should match the regular expression ^-?[0-9]+(\.[0-9]+)?$. + The string should match the regular expression ^[0-9]+(\.[0-9]+)?$.
@@ -607,7 +608,7 @@

CurrencyAmount

The following example shows how to represent US$55.00.

 {
-  "currencyCode": "USD",
+  "currency": "USD",
   "value" : "55.00"
 }