|
5 | 5 | }, |
6 | 6 | "algorithms": [ |
7 | 7 | { |
8 | | - "html": "In the steps for the <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://www.w3.org/TR/payment-request-1.1/#dom-paymentrequest-constructor\" id=\"ref-for-dom-paymentrequest-constructor\">PaymentRequest object’s constructor</a></code>,\nadd a new step after step 4.3:", |
| 8 | + "html": "In the steps for the <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://www.w3.org/TR/payment-request/#dom-paymentrequest-constructor\" id=\"ref-for-dom-paymentrequest-constructor\">PaymentRequest object’s constructor</a></code>,\nadd a new step after step 4.3:", |
9 | 9 | "rationale": "process", |
10 | 10 | "steps": [ |
11 | 11 | { |
|
20 | 20 | ] |
21 | 21 | }, |
22 | 22 | { |
23 | | - "html": "In the steps for the <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://www.w3.org/TR/payment-request-1.1/#dom-paymentrequest-show\" id=\"ref-for-dom-paymentrequest-show\">PaymentRequest.show()</a></code> method,\nmodify steps 2 and 3:", |
| 23 | + "html": "In the steps for the <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://www.w3.org/TR/payment-request/#dom-paymentrequest-show\" id=\"ref-for-dom-paymentrequest-show\">PaymentRequest.show()</a></code> method,\nmodify steps 2 and 3:", |
24 | 24 | "rationale": "if", |
25 | 25 | "steps": [ |
26 | 26 | { |
|
150 | 150 | "html": "<p>Not allowing the caller to perform a timing attack on this outcome versus\nthe user declining to authenticate on the <a href=\"https://www.w3.org/TR/secure-payment-confirmation/#sctn-transaction-confirmation-ux\">transaction confirmation UX</a>, e.g.,\nby presenting an alternative interstitial that the user must interact\nwith.</p>" |
151 | 151 | }, |
152 | 152 | { |
153 | | - "html": "<p>Rejecting the <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://www.w3.org/TR/payment-request-1.1/#dom-paymentrequest-show\" id=\"ref-for-dom-paymentrequest-show①\">show()</a></code> promise with a\n\"<code class=\"idl\"><a data-link-type=\"idl\" href=\"https://webidl.spec.whatwg.org/#notallowederror\" id=\"ref-for-notallowederror\">NotAllowedError</a></code>\" <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://webidl.spec.whatwg.org/#idl-DOMException\" id=\"ref-for-idl-DOMException①\">DOMException</a></code>.</p>" |
| 153 | + "html": "<p>Rejecting the <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://www.w3.org/TR/payment-request/#dom-paymentrequest-show\" id=\"ref-for-dom-paymentrequest-show①\">show()</a></code> promise with a\n\"<code class=\"idl\"><a data-link-type=\"idl\" href=\"https://webidl.spec.whatwg.org/#notallowederror\" id=\"ref-for-notallowederror\">NotAllowedError</a></code>\" <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://webidl.spec.whatwg.org/#idl-DOMException\" id=\"ref-for-idl-DOMException①\">DOMException</a></code>.</p>" |
154 | 154 | } |
155 | 155 | ] |
156 | 156 | }, |
|
160 | 160 | ] |
161 | 161 | }, |
162 | 162 | { |
163 | | - "html": "The <a data-link-type=\"dfn\" href=\"https://w3c.github.io/payment-request/#dfn-steps-to-respond-to-a-payment-request\" id=\"ref-for-dfn-steps-to-respond-to-a-payment-request\">steps to respond to a payment request</a> for this payment method, for a given <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://www.w3.org/TR/payment-request-1.1/#dom-paymentrequest\" id=\"ref-for-dom-paymentrequest③\">PaymentRequest</a></code> <var>request</var> and <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://www.w3.org/TR/secure-payment-confirmation/#dictdef-securepaymentconfirmationrequest\" id=\"ref-for-dictdef-securepaymentconfirmationrequest⑤\">SecurePaymentConfirmationRequest</a></code> <var>data</var>, are:", |
| 163 | + "html": "The <a data-link-type=\"dfn\" href=\"https://w3c.github.io/payment-request/#dfn-steps-to-respond-to-a-payment-request\" id=\"ref-for-dfn-steps-to-respond-to-a-payment-request\">steps to respond to a payment request</a> for this payment method, for a given <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://www.w3.org/TR/payment-request/#dom-paymentrequest\" id=\"ref-for-dom-paymentrequest③\">PaymentRequest</a></code> <var>request</var> and <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://www.w3.org/TR/secure-payment-confirmation/#dictdef-securepaymentconfirmationrequest\" id=\"ref-for-dictdef-securepaymentconfirmationrequest⑤\">SecurePaymentConfirmationRequest</a></code> <var>data</var>, are:", |
164 | 164 | "rationale": "let", |
165 | 165 | "steps": [ |
166 | 166 | { |
167 | 167 | "html": "<p>Let <var>topOrigin</var> be the <a data-link-type=\"dfn\" href=\"https://html.spec.whatwg.org/multipage/webappapis.html#concept-environment-top-level-origin\" id=\"ref-for-concept-environment-top-level-origin\">top-level origin</a> of the <a data-link-type=\"dfn\" href=\"https://html.spec.whatwg.org/multipage/webappapis.html#relevant-settings-object\" id=\"ref-for-relevant-settings-object\">relevant settings object</a> of <var>request</var>.</p>" |
168 | 168 | }, |
169 | 169 | { |
170 | | - "html": "<p>Let <var>payment</var> be a new a <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://www.w3.org/TR/secure-payment-confirmation/#dictdef-authenticationextensionspaymentinputs\" id=\"ref-for-dictdef-authenticationextensionspaymentinputs\">AuthenticationExtensionsPaymentInputs</a></code> dictionary,\nwhose fields are:</p>\n <dl>\n <dt data-md=\"\"><code class=\"idl\"><a data-link-type=\"idl\" href=\"https://www.w3.org/TR/secure-payment-confirmation/#dom-authenticationextensionspaymentinputs-ispayment\" id=\"ref-for-dom-authenticationextensionspaymentinputs-ispayment\">isPayment</a></code>\n </dt><dd data-md=\"\">\n <p>The boolean value <code>true</code>.</p>\n </dd><dt data-md=\"\"><code class=\"idl\"><a data-link-type=\"idl\" href=\"https://www.w3.org/TR/secure-payment-confirmation/#dom-authenticationextensionspaymentinputs-rpid\" id=\"ref-for-dom-authenticationextensionspaymentinputs-rpid\">rpId</a></code>\n </dt><dd data-md=\"\">\n <p><var>data</var>[\"<code class=\"idl\"><a data-link-type=\"idl\" href=\"https://www.w3.org/TR/secure-payment-confirmation/#dom-securepaymentconfirmationrequest-rpid\" id=\"ref-for-dom-securepaymentconfirmationrequest-rpid④\">rpId</a></code>\"]</p>\n </dd><dt data-md=\"\"><code class=\"idl\"><a data-link-type=\"idl\" href=\"https://www.w3.org/TR/secure-payment-confirmation/#dom-authenticationextensionspaymentinputs-toporigin\" id=\"ref-for-dom-authenticationextensionspaymentinputs-toporigin\">topOrigin</a></code>\n </dt><dd data-md=\"\">\n <p><var>topOrigin</var></p>\n </dd><dt data-md=\"\"><code class=\"idl\"><a data-link-type=\"idl\" href=\"https://www.w3.org/TR/secure-payment-confirmation/#dom-authenticationextensionspaymentinputs-payeename\" id=\"ref-for-dom-authenticationextensionspaymentinputs-payeename\">payeeName</a></code>\n </dt><dd data-md=\"\">\n <p><var>data</var>[\"<code class=\"idl\"><a data-link-type=\"idl\" href=\"https://www.w3.org/TR/secure-payment-confirmation/#dom-securepaymentconfirmationrequest-payeename\" id=\"ref-for-dom-securepaymentconfirmationrequest-payeename④\">payeeName</a></code>\"] if it is\npresent, otherwise omitted.</p>\n </dd><dt data-md=\"\"><code class=\"idl\"><a data-link-type=\"idl\" href=\"https://www.w3.org/TR/secure-payment-confirmation/#dom-authenticationextensionspaymentinputs-payeeorigin\" id=\"ref-for-dom-authenticationextensionspaymentinputs-payeeorigin\">payeeOrigin</a></code>\n </dt><dd data-md=\"\">\n <p><var>data</var>[\"<code class=\"idl\"><a data-link-type=\"idl\" href=\"https://www.w3.org/TR/secure-payment-confirmation/#dom-securepaymentconfirmationrequest-payeeorigin\" id=\"ref-for-dom-securepaymentconfirmationrequest-payeeorigin⑨\">payeeOrigin</a></code>\"] if it is\npresent, otherwise omitted.</p>\n </dd><dt data-md=\"\"><code class=\"idl\"><a data-link-type=\"idl\" href=\"https://www.w3.org/TR/secure-payment-confirmation/#dom-authenticationextensionspaymentinputs-total\" id=\"ref-for-dom-authenticationextensionspaymentinputs-total\">total</a></code>\n </dt><dd data-md=\"\">\n <p><var>request</var>.<a data-link-type=\"dfn\" href=\"https://w3c.github.io/payment-request/#dfn-details\" id=\"ref-for-dfn-details\">[[details]]</a>[\"<code class=\"idl\"><a data-link-type=\"idl\" href=\"https://www.w3.org/TR/payment-request-1.1/#dom-paymentdetailsinit-total\" id=\"ref-for-dom-paymentdetailsinit-total\">total</a></code>\"]</p>\n </dd><dt data-md=\"\"><code class=\"idl\"><a data-link-type=\"idl\" href=\"https://www.w3.org/TR/secure-payment-confirmation/#dom-authenticationextensionspaymentinputs-instrument\" id=\"ref-for-dom-authenticationextensionspaymentinputs-instrument\">instrument</a></code>\n </dt><dd data-md=\"\">\n <p><var>data</var>[\"<code class=\"idl\"><a data-link-type=\"idl\" href=\"https://www.w3.org/TR/secure-payment-confirmation/#dom-securepaymentconfirmationrequest-instrument\" id=\"ref-for-dom-securepaymentconfirmationrequest-instrument⑦\">instrument</a></code>\"]</p>\n </dd></dl>" |
| 170 | + "html": "<p>Let <var>payment</var> be a new a <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://www.w3.org/TR/secure-payment-confirmation/#dictdef-authenticationextensionspaymentinputs\" id=\"ref-for-dictdef-authenticationextensionspaymentinputs\">AuthenticationExtensionsPaymentInputs</a></code> dictionary,\nwhose fields are:</p>\n <dl>\n <dt data-md=\"\"><code class=\"idl\"><a data-link-type=\"idl\" href=\"https://www.w3.org/TR/secure-payment-confirmation/#dom-authenticationextensionspaymentinputs-ispayment\" id=\"ref-for-dom-authenticationextensionspaymentinputs-ispayment\">isPayment</a></code>\n </dt><dd data-md=\"\">\n <p>The boolean value <code>true</code>.</p>\n </dd><dt data-md=\"\"><code class=\"idl\"><a data-link-type=\"idl\" href=\"https://www.w3.org/TR/secure-payment-confirmation/#dom-authenticationextensionspaymentinputs-rpid\" id=\"ref-for-dom-authenticationextensionspaymentinputs-rpid\">rpId</a></code>\n </dt><dd data-md=\"\">\n <p><var>data</var>[\"<code class=\"idl\"><a data-link-type=\"idl\" href=\"https://www.w3.org/TR/secure-payment-confirmation/#dom-securepaymentconfirmationrequest-rpid\" id=\"ref-for-dom-securepaymentconfirmationrequest-rpid④\">rpId</a></code>\"]</p>\n </dd><dt data-md=\"\"><code class=\"idl\"><a data-link-type=\"idl\" href=\"https://www.w3.org/TR/secure-payment-confirmation/#dom-authenticationextensionspaymentinputs-toporigin\" id=\"ref-for-dom-authenticationextensionspaymentinputs-toporigin\">topOrigin</a></code>\n </dt><dd data-md=\"\">\n <p><var>topOrigin</var></p>\n </dd><dt data-md=\"\"><code class=\"idl\"><a data-link-type=\"idl\" href=\"https://www.w3.org/TR/secure-payment-confirmation/#dom-authenticationextensionspaymentinputs-payeename\" id=\"ref-for-dom-authenticationextensionspaymentinputs-payeename\">payeeName</a></code>\n </dt><dd data-md=\"\">\n <p><var>data</var>[\"<code class=\"idl\"><a data-link-type=\"idl\" href=\"https://www.w3.org/TR/secure-payment-confirmation/#dom-securepaymentconfirmationrequest-payeename\" id=\"ref-for-dom-securepaymentconfirmationrequest-payeename④\">payeeName</a></code>\"] if it is\npresent, otherwise omitted.</p>\n </dd><dt data-md=\"\"><code class=\"idl\"><a data-link-type=\"idl\" href=\"https://www.w3.org/TR/secure-payment-confirmation/#dom-authenticationextensionspaymentinputs-payeeorigin\" id=\"ref-for-dom-authenticationextensionspaymentinputs-payeeorigin\">payeeOrigin</a></code>\n </dt><dd data-md=\"\">\n <p><var>data</var>[\"<code class=\"idl\"><a data-link-type=\"idl\" href=\"https://www.w3.org/TR/secure-payment-confirmation/#dom-securepaymentconfirmationrequest-payeeorigin\" id=\"ref-for-dom-securepaymentconfirmationrequest-payeeorigin⑨\">payeeOrigin</a></code>\"] if it is\npresent, otherwise omitted.</p>\n </dd><dt data-md=\"\"><code class=\"idl\"><a data-link-type=\"idl\" href=\"https://www.w3.org/TR/secure-payment-confirmation/#dom-authenticationextensionspaymentinputs-total\" id=\"ref-for-dom-authenticationextensionspaymentinputs-total\">total</a></code>\n </dt><dd data-md=\"\">\n <p><var>request</var>.<a data-link-type=\"dfn\" href=\"https://w3c.github.io/payment-request/#dfn-details\" id=\"ref-for-dfn-details\">[[details]]</a>[\"<code class=\"idl\"><a data-link-type=\"idl\" href=\"https://www.w3.org/TR/payment-request/#dom-paymentdetailsinit-total\" id=\"ref-for-dom-paymentdetailsinit-total\">total</a></code>\"]</p>\n </dd><dt data-md=\"\"><code class=\"idl\"><a data-link-type=\"idl\" href=\"https://www.w3.org/TR/secure-payment-confirmation/#dom-authenticationextensionspaymentinputs-instrument\" id=\"ref-for-dom-authenticationextensionspaymentinputs-instrument\">instrument</a></code>\n </dt><dd data-md=\"\">\n <p><var>data</var>[\"<code class=\"idl\"><a data-link-type=\"idl\" href=\"https://www.w3.org/TR/secure-payment-confirmation/#dom-securepaymentconfirmationrequest-instrument\" id=\"ref-for-dom-securepaymentconfirmationrequest-instrument⑦\">instrument</a></code>\"]</p>\n </dd></dl>" |
171 | 171 | }, |
172 | 172 | { |
173 | 173 | "html": "<p>Let <var>extensions</var> be a new <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://www.w3.org/TR/webauthn-3/#dictdef-authenticationextensionsclientinputs\" id=\"ref-for-dictdef-authenticationextensionsclientinputs②\">AuthenticationExtensionsClientInputs</a></code> dictionary\nwhose <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://www.w3.org/TR/secure-payment-confirmation/#dom-authenticationextensionsclientinputs-payment\" id=\"ref-for-dom-authenticationextensionsclientinputs-payment①\">payment</a></code> member is set to <var>payment</var>, and whose other members are set from <var>data</var>[\"<code class=\"idl\"><a data-link-type=\"idl\" href=\"https://www.w3.org/TR/secure-payment-confirmation/#dom-securepaymentconfirmationrequest-extensions\" id=\"ref-for-dom-securepaymentconfirmationrequest-extensions①\">extensions</a></code>\"].</p>" |
|
0 commit comments