Re: [w3c/payment-request] add paymentmethodchange event (#695)

marcoscaceres commented on this pull request.



> @@ -3476,6 +3606,49 @@ <h2>
           </li>
         </ol>
       </section>
+      <section>
+        <h2>
+          Payment method changed algorithm
+        </h2>
+        <p>
+          The user agent MUST run the <dfn>payment method changed
+          algorithm</dfn> runs when the user changes <a>payment method</a>. The
+          algorithm takes <var>methodDetails</var>, which is either
+          <a data-cite="!WEBIDL#idl-dictionary">dictionary</a> or an
+          <a data-cite="!WEBIDL#idl-object">object</a> or null, and a
+          <var>methodName</var>, which is a DOMString that represents the
+          <a>payment method identifier</a> of the <a>payment handler</a> the
+          user is interacting with:

Will rephrase this, as it's actually the Payment Handler that needs to invoke this. From discussions over in Basic Card, we are going to make this optional... so Basic Card won't fire this, but Apply Pay will.  

-- 
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/695#discussion_r193273833

Received on Wednesday, 6 June 2018 02:16:33 UTC