126
126
version are as follows. The complete list of changes, including all
127
127
editorial changes, is viewable in the < a href =
128
128
"https://github.com/w3c/payment-request/commits/gh-pages "> commit
129
- history</ a > .
129
+ history</ a > . Key set of changes are viewable in the < a href =
130
+ "#changelog "> Changelog</ a > .
130
131
</ p >
131
132
< ul >
132
133
< li > Added support for notification when the user selects a payment
161
162
</ li >
162
163
< li > Defined handling of multiple applicable modifiers.
163
164
</ li >
165
+ < li > Deprecated `allowpaymentrequest` attribute.
166
+ </ li >
164
167
</ ul >
165
168
</ section >
166
169
</ section >
@@ -594,6 +597,29 @@ <h3>
594
597
doPaymentRequest();
595
598
</ pre >
596
599
</ section >
600
+ < section >
601
+ < h2 >
602
+ Using with cross-origin iframes
603
+ </ h2 >
604
+ < p >
605
+ To indicate that a cross-origin [^iframe^] is allowed to invoke the
606
+ payment request API, the [^iframe/allow^] attribute along with the
607
+ "payment" keyword can be specified on the [^iframe^] element.
608
+ </ p >
609
+ < pre class ="example html " title =
610
+ "Using Payment Request API with cross-origin iframes ">
611
+ <iframe
612
+ src="https://cross-origing.example"
613
+ allow="payment">
614
+ </iframe>
615
+ </ pre >
616
+ < p >
617
+ If the [^iframe^] will be navigated across multiple origins that
618
+ support the Payment Request API, then one can set [^iframe/allow^] to
619
+ `"payment *"`. The [[[permissions-policy]]] specification provides
620
+ further details and examples.
621
+ </ p >
622
+ </ section >
597
623
</ section >
598
624
< section data-dfn-for ="PaymentRequest ">
599
625
< h2 >
@@ -3574,18 +3600,6 @@ <h2>
3574
3600
</ table >
3575
3601
</ section >
3576
3602
</ section >
3577
- < section class ="informative ">
3578
- < h2 >
3579
- < code > PaymentRequest</ code > and < code > iframe</ code > elements
3580
- </ h2 >
3581
- < p >
3582
- To indicate that a cross-origin [^iframe^] is allowed to invoke the
3583
- payment request API, the [^iframe/allowpaymentrequest^] attribute can
3584
- be specified on the [^iframe^] element. See [[[#permissions-policy]]]
3585
- for details of how [^iframe/allowoaymentrequest=] and
3586
- [[[permissions-policy]]] interact.
3587
- </ p >
3588
- </ section >
3589
3603
< section id ="permissions-policy " data-cite ="permissions-policy ">
3590
3604
< h2 >
3591
3605
Permissions Policy integration
@@ -3596,25 +3610,15 @@ <h2>
3596
3610
""> payment</ dfn > </ code > ". Its < a > default allowlist</ a > is
3597
3611
'< code > self</ code > '.
3598
3612
</ p >
3599
- < div class ="note ">
3613
+ < aside class ="note ">
3600
3614
< p >
3601
3615
A < a > document</ a > ’s [=Document/permissions policy=] determines
3602
3616
whether any content in that document is allowed to construct
3603
3617
{{PaymentRequest}} instances. If disabled in any document, no content
3604
3618
in the document will be < a > allowed to use</ a > the {{PaymentRequest}}
3605
3619
constructor (trying to create an instance will throw).
3606
3620
</ p >
3607
- < p >
3608
- The [^iframe/allowpaymentrequest^] attribute of the HTML
3609
- < a > iframe</ a > element affects the < a > container policy</ a > for any
3610
- document nested in that iframe. Unless overridden by the
3611
- [^iframe/allow^] attribute, setting [^iframe/allowpaymentrequest^] on
3612
- an iframe is equivalent to `<iframe allow="fullscreen *">`, as
3613
- described in < a data-cite =
3614
- "permissions-policy#iframe-allowpaymentrequest-attribute "> Permissions
3615
- Policy §allowpaymentrequest</ a > .
3616
- </ p >
3617
- </ div >
3621
+ </ aside >
3618
3622
</ section >
3619
3623
< section >
3620
3624
< h2 >
@@ -5179,7 +5183,7 @@ <h2>
5179
5183
It is common for merchants and other payees to delegate checkout and
5180
5184
other e-commerce activities to payment service providers through an
5181
5185
< a > iframe</ a > . This API supports payee-authorized cross-origin
5182
- iframes through [[HTML]]'s [^iframe/allowpaymentrequest ^] attribute.
5186
+ iframes through [[HTML]]'s [^iframe/allow ^] attribute.
5183
5187
</ p >
5184
5188
< p class ="Note ">
5185
5189
< a > Payment handlers</ a > have access to both the origin that hosts the
0 commit comments