@@ -1294,25 +1294,21 @@ <h2>
1294
1294
supported < a > payment methods</ a > and any associated < a > payment
1295
1295
method</ a > specific data for those methods.
1296
1296
</ p >
1297
- < p >
1298
- The following members are part of the < a > PaymentMethodData</ a >
1299
- dictionary:
1300
- </ p >
1301
1297
< dl >
1302
1298
< dt >
1303
1299
< dfn > supportedMethods</ dfn > member
1304
1300
</ dt >
1305
1301
< dd >
1306
- < a > supportedMethods </ a > is a < a > payment method identifier </ a > for a
1307
- < a > payment method </ a > that the merchant web site accepts.
1302
+ A < a > payment method identifier </ a > for a < a > payment method</ a > that
1303
+ the merchant web site accepts.
1308
1304
</ dd >
1309
1305
< dt >
1310
1306
< dfn > data</ dfn > member
1311
1307
</ dt >
1312
1308
< dd >
1313
- < a > data </ a > is an object that provides optional information that
1314
- might be needed by the supported payment methods. If supplied, it
1315
- will be < a > JSON-serialized</ a > .
1309
+ An object that provides optional information that might be needed by
1310
+ the supported payment methods. If supplied, it will be
1311
+ < a > JSON-serialized</ a > .
1316
1312
</ dd >
1317
1313
</ dl >
1318
1314
< p class ="note ">
@@ -1484,33 +1480,30 @@ <h2>
1484
1480
sequence<PaymentShippingOption> shippingOptions;
1485
1481
sequence<PaymentDetailsModifier> modifiers;
1486
1482
};
1487
- </ pre >
1488
- < p >
1489
- The following members are part of the < a > PaymentDetailsBase</ a >
1490
- dictionary:
1491
- </ p >
1483
+ </ pre >
1492
1484
< dl >
1493
1485
< dt >
1494
1486
< dfn > displayItems</ dfn > member
1495
1487
</ dt >
1496
1488
< dd >
1497
- This sequence of < a > PaymentItem</ a > dictionaries contains line
1498
- items for the payment request that the < a > user agent</ a > MAY
1499
- display. For example, it might include details of products or
1500
- breakdown of tax and shipping. It is optional to provide this
1501
- information.
1502
- < p class ="note ">
1489
+ A sequence of < a > PaymentItem</ a > dictionaries contains line items
1490
+ for the payment request that the < a > user agent</ a > MAY display. For
1491
+ example, it might include details of products or breakdown of tax
1492
+ and shipping. It is optional to provide this information.
1493
+ < aside class ="note ">
1503
1494
It is the developer's responsibility to verify that the
1504
1495
< a data-lt ="PaymentDetailsInit.total "> total</ a > amount is the sum
1505
1496
of these items.
1506
- </ p >
1497
+ </ aside >
1507
1498
</ dd >
1508
1499
< dt >
1509
1500
< dfn > shippingOptions</ dfn > member
1510
1501
</ dt >
1511
1502
< dd >
1512
- A sequence containing the different shipping options for the user
1513
- to choose from.
1503
+ < p >
1504
+ A sequence containing the different shipping options for the user
1505
+ to choose from.
1506
+ </ p >
1514
1507
< p >
1515
1508
If an item in the sequence has the < a data-lt =
1516
1509
"PaymentShippingOption.selected "> selected</ a > member set to true,
@@ -1531,21 +1524,21 @@ <h2>
1531
1524
< a data-lt ="PaymentOptions.requestShipping "> requestShipping</ a >
1532
1525
set to true.
1533
1526
</ p >
1534
- < p class ="note ">
1527
+ < aside class ="note ">
1535
1528
If the sequence has an item with the < a data-lt =
1536
1529
"PaymentShippingOption.selected "> selected</ a > member set to true,
1537
1530
then authors are responsible for ensuring that the < a data-lt =
1538
1531
"PaymentDetailsInit.total "> total</ a > member includes the cost of
1539
1532
the shipping option. This is because no
1540
1533
< a > shippingoptionchange</ a > event will be fired for this option
1541
1534
unless the user selects an alternative option first.
1542
- </ p >
1535
+ </ aside >
1543
1536
</ dd >
1544
1537
< dt >
1545
1538
< dfn > modifiers</ dfn > member
1546
1539
</ dt >
1547
1540
< dd >
1548
- This sequence of < a > PaymentDetailsModifier</ a > dictionaries
1541
+ A sequence of < a > PaymentDetailsModifier</ a > dictionaries that
1549
1542
contains modifiers for particular payment method identifiers. For
1550
1543
example, it allows you to adjust the total amount based on payment
1551
1544
method.
@@ -1558,15 +1551,15 @@ <h2>
1558
1551
< dfn > PaymentDetailsInit</ dfn > dictionary
1559
1552
</ h2 >
1560
1553
< pre class ="idl ">
1561
- dictionary PaymentDetailsInit : PaymentDetailsBase {
1562
- DOMString id;
1563
- required PaymentItem total;
1564
- };
1565
- </ pre >
1566
- < p class ="note ">
1554
+ dictionary PaymentDetailsInit : PaymentDetailsBase {
1555
+ DOMString id;
1556
+ required PaymentItem total;
1557
+ };
1558
+ </ pre >
1559
+ < aside class ="note ">
1567
1560
The < a > PaymentDetailsInit</ a > dictionary is used in the construction
1568
1561
of the payment request.
1569
- </ p >
1562
+ </ aside >
1570
1563
< p >
1571
1564
In addition to the members inherited from the
1572
1565
< a > PaymentDetailsBase</ a > dictionary, the following members are part
@@ -1577,26 +1570,26 @@ <h2>
1577
1570
< dfn > id</ dfn > member
1578
1571
</ dt >
1579
1572
< dd >
1580
- < a > id </ a > is a free-form identifier for this payment request.
1581
- < p class ="note ">
1573
+ A free-form identifier for this payment request.
1574
+ < aside class ="note ">
1582
1575
If an < a > id</ a > member is not present, then the < a > user agent</ a >
1583
1576
will generate a unique identifier for the payment request during
1584
1577
< a data-lt ="PaymentRequest.PaymentRequest() "> construction</ a > .
1585
- </ p >
1578
+ </ aside >
1586
1579
</ dd >
1587
1580
< dt >
1588
1581
< dfn > total</ dfn > member
1589
1582
</ dt >
1590
1583
< dd >
1591
- This < a > PaymentItem</ a > contains the non-negative total amount of
1592
- the payment request.
1593
- < p class ="note ">
1584
+ A < a > PaymentItem</ a > containing a non-negative total amount for the
1585
+ payment request.
1586
+ < aside class ="note ">
1594
1587
Algorithms in this specification that accept a
1595
1588
< a > PaymentDetailsInit</ a > dictionary will throw if the
1596
1589
< a > total</ a > .< a data-lt =
1597
1590
"PaymentItem.amount "> amount</ a > .< a data-lt =
1598
1591
"PaymentCurrencyAmount.value "> value</ a > is a negative number.
1599
- </ p >
1592
+ </ aside >
1600
1593
</ dd >
1601
1594
</ dl >
1602
1595
</ section >
@@ -1606,11 +1599,11 @@ <h2>
1606
1599
< dfn > PaymentDetailsUpdate</ dfn > dictionary
1607
1600
</ h2 >
1608
1601
< pre class ="idl ">
1609
- dictionary PaymentDetailsUpdate : PaymentDetailsBase {
1610
- DOMString error;
1611
- PaymentItem total;
1612
- };
1613
- </ pre >
1602
+ dictionary PaymentDetailsUpdate : PaymentDetailsBase {
1603
+ DOMString error;
1604
+ PaymentItem total;
1605
+ };
1606
+ </ pre >
1614
1607
< p >
1615
1608
The < a > PaymentDetailsUpdate</ a > dictionary is used to update the
1616
1609
payment request using < a data-lt =
@@ -1626,9 +1619,9 @@ <h2>
1626
1619
< dfn > error</ dfn > member
1627
1620
</ dt >
1628
1621
< dd >
1629
- When the payment request is updated using < a data-lt =
1630
- "PaymentRequestUpdateEvent.updateWith "> updateWith()</ a > , the
1631
- < a > PaymentDetailsUpdate</ a > can contain a message in the
1622
+ A human-readable string. When the payment request is updated using
1623
+ < a data-lt = "PaymentRequestUpdateEvent.updateWith "> updateWith()</ a > ,
1624
+ the < a > PaymentDetailsUpdate</ a > can contain a message in the
1632
1625
< a > error</ a > member that will be displayed to the user, if the
1633
1626
< a > PaymentDetailsUpdate</ a > indicates that there are no valid
1634
1627
< a data-lt ="PaymentDetailsBase.shippingOptions "> shippingOptions</ a >
@@ -1642,7 +1635,8 @@ <h2>
1642
1635
< dfn > total</ dfn > member
1643
1636
</ dt >
1644
1637
< dd >
1645
- This < a > PaymentItem</ a > contains the non-negative total amount.
1638
+ A < a > PaymentItem</ a > contains the non-negative < a data-lt =
1639
+ "PaymentItem.amount "> amount</ a > .
1646
1640
< p class ="note ">
1647
1641
Algorithms in this specification that accept a
1648
1642
< a > PaymentDetailsUpdate</ a > dictionary will throw if the
@@ -1677,15 +1671,15 @@ <h2>
1677
1671
< dfn > supportedMethods</ dfn > member
1678
1672
</ dt >
1679
1673
< dd >
1680
- The < a > supportedMethods </ a > member is a < a > payment method
1681
- identifier < /a > . The members of the < a > PaymentDetailsModifier </ a > only
1682
- apply if the user select this < a > payment method</ a > .
1674
+ A < a > payment method identifier </ a > . The members of the
1675
+ < a > PaymentDetailsModifier < /a > only apply if the user select this
1676
+ < a > payment method</ a > .
1683
1677
</ dd >
1684
1678
< dt >
1685
1679
< dfn > total</ dfn > member
1686
1680
</ dt >
1687
1681
< dd >
1688
- This < a > PaymentItem</ a > value overrides the < a data-lt =
1682
+ A < a > PaymentItem</ a > value that overrides the < a data-lt =
1689
1683
"PaymentDetailsInit.total "> total</ a > member in the
1690
1684
< a > PaymentDetailsInit</ a > dictionary for the < a > payment method
1691
1685
identifiers</ a > of the < a > supportedMethods</ a > member.
@@ -1694,7 +1688,7 @@ <h2>
1694
1688
< dfn > additionalDisplayItems</ dfn > member
1695
1689
</ dt >
1696
1690
< dd >
1697
- This sequence of < a > PaymentItem</ a > dictionaries provides additional
1691
+ A sequence of < a > PaymentItem</ a > dictionaries provides additional
1698
1692
display items that are appended to the < a data-lt =
1699
1693
"PaymentDetailsBase.displayItems "> displayItems</ a > member in the
1700
1694
< a > PaymentDetailsBase</ a > dictionary for the < a > payment method
@@ -1713,9 +1707,8 @@ <h2>
1713
1707
< dfn > data</ dfn > member
1714
1708
</ dt >
1715
1709
< dd >
1716
- < a > data</ a > is an object that provides optional information that
1717
- might be needed by the supported payment methods. If supplied, it
1718
- will be < a > JSON-serialized</ a > .
1710
+ An object that provides optional information that might be needed by
1711
+ the supported payment methods.
1719
1712
</ dd >
1720
1713
</ dl >
1721
1714
</ section >
@@ -1778,49 +1771,50 @@ <h2>
1778
1771
< dfn > requestPayerName</ dfn > member
1779
1772
</ dt >
1780
1773
< dd >
1781
- This boolean value indicates whether the < a > user agent</ a > SHOULD
1782
- collect and return the payer's name as part of the payment request.
1783
- For example, this would be set to true to allow a merchant to make a
1774
+ A boolean that indicates whether the < a > user agent</ a > SHOULD collect
1775
+ and return the payer's name as part of the payment request. For
1776
+ example, this would be set to true to allow a merchant to make a
1784
1777
booking in the payer's name.
1785
1778
</ dd >
1786
1779
< dt >
1787
1780
< dfn > requestPayerEmail</ dfn > member
1788
1781
</ dt >
1789
1782
< dd >
1790
- This boolean value indicates whether the < a > user agent</ a > SHOULD
1791
- collect and return the payer's email address as part of the payment
1792
- request. For example, this would be set to true to allow a merchant
1793
- to email a receipt.
1783
+ A boolean that indicates whether the < a > user agent</ a > SHOULD collect
1784
+ and return the payer's email address as part of the payment request.
1785
+ For example, this would be set to true to allow a merchant to email a
1786
+ receipt.
1794
1787
</ dd >
1795
1788
< dt >
1796
1789
< dfn > requestPayerPhone</ dfn > member
1797
1790
</ dt >
1798
1791
< dd >
1799
- This boolean value indicates whether the < a > user agent</ a > SHOULD
1800
- collect and return the payer's phone number as part of the payment
1801
- request. For example, this would be set to true to allow a merchant
1802
- to phone a customer with a billing enquiry.
1792
+ A boolean that indicates whether the < a > user agent</ a > SHOULD collect
1793
+ and return the payer's phone number as part of the payment request.
1794
+ For example, this would be set to true to allow a merchant to phone a
1795
+ customer with a billing enquiry.
1803
1796
</ dd >
1804
1797
< dt >
1805
1798
< dfn > requestShipping</ dfn > member
1806
1799
</ dt >
1807
1800
< dd >
1808
- This boolean value indicates whether the < a > user agent</ a > SHOULD
1809
- collect and return a shipping address as part of the payment request.
1810
- For example, this would be set to true when physical goods need to be
1801
+ A boolean that indicates whether the < a > user agent</ a > SHOULD collect
1802
+ and return a shipping address as part of the payment request. For
1803
+ example, this would be set to true when physical goods need to be
1811
1804
shipped by the merchant to the user. This would be set to false for
1812
1805
an online-only electronic purchase transaction.
1813
1806
</ dd >
1814
1807
< dt >
1815
1808
< dfn > shippingType</ dfn > member
1816
1809
</ dt >
1817
1810
< dd >
1818
- Some transactions require an address for delivery but the term
1819
- "shipping" isn't appropriate. For example, "pizza delivery" not
1820
- "pizza shipping" and "laundry pickup" not "laundry shipping". If
1821
- < a > requestShipping</ a > is set to true, then the < a > shippingType</ a >
1822
- member may be used to influence the way the < a > user agent</ a >
1823
- presents the user interface for gathering the shipping address.
1811
+ A < a > ShippingType</ a > enum value. Some transactions require an
1812
+ address for delivery but the term "shipping" isn't appropriate. For
1813
+ example, "pizza delivery" not "pizza shipping" and "laundry pickup"
1814
+ not "laundry shipping". If < a > requestShipping</ a > is set to true,
1815
+ then the < a > shippingType</ a > member can influence the way the < a > user
1816
+ agent</ a > presents the user interface for gathering the shipping
1817
+ address.
1824
1818
< p >
1825
1819
The < a > shippingType</ a > member only affects the user interface for
1826
1820
the payment request.
@@ -1849,8 +1843,8 @@ <h2>
1849
1843
< dfn > label</ dfn > member
1850
1844
</ dt >
1851
1845
< dd >
1852
- This is a human-readable description of the item. The < a > user
1853
- agent </ a > may display this to the user.
1846
+ A human-readable description of the item. The < a > user agent </ a > may
1847
+ display this to the user.
1854
1848
</ dd >
1855
1849
< dt >
1856
1850
< dfn > amount</ dfn > member
@@ -1863,7 +1857,7 @@ <h2>
1863
1857
< dfn > pending</ dfn > member
1864
1858
</ dt >
1865
1859
< dd >
1866
- When set to true this member means that the < a > amount</ a > member is
1860
+ A boolean. When set to true it means that the < a > amount</ a > member is
1867
1861
not final. This is commonly used to show items such as shipping or
1868
1862
tax amounts that depend upon selection of shipping address or
1869
1863
shipping option. < a > User agents</ a > MAY indicate pending fields in
@@ -2026,15 +2020,15 @@ <h2>
2026
2020
< dfn > id</ dfn > member
2027
2021
</ dt >
2028
2022
< dd >
2029
- This is a string identifier used to reference this
2023
+ A string identifier used to reference this
2030
2024
< a > PaymentShippingOption</ a > . It MUST be unique for a given
2031
2025
< a > PaymentRequest</ a > .
2032
2026
</ dd >
2033
2027
< dt >
2034
2028
< dfn > label</ dfn > member
2035
2029
</ dt >
2036
2030
< dd >
2037
- This is a human-readable description of the item. The < a > user
2031
+ A human-readable string description of the item. The < a > user
2038
2032
agent</ a > SHOULD use this string to display the shipping option to
2039
2033
the user.
2040
2034
</ dd >
@@ -2049,7 +2043,7 @@ <h2>
2049
2043
< dfn > selected</ dfn > member
2050
2044
</ dt >
2051
2045
< dd >
2052
- This is set to true to indicate that this is the default selected
2046
+ A boolean. When true, it indicates that this is the default selected
2053
2047
< a > PaymentShippingOption</ a > in a sequence. < a > User agents</ a > SHOULD
2054
2048
display this option by default in the user interface.
2055
2049
</ dd >
0 commit comments