Re: [w3c/payment-handler] Add CanMakePaymentEvent. (#170)

marcoscaceres commented on this pull request.



> +            </ol>
+          </li>
+          <li>Otherwise, fire the <a>CanMakePaymentEvent</a> in the payment
+          handler and return the result.
+          </li>
+        </ol>
+        <section id="capabilities-example" class="informative">
+          <h2>
+            How to specify capabilities
+          </h2>
+          <p>
+            Example of how a payment handler should provide the list of all its
+            active cards to the browser.
+          </p>
+          <pre class="example js" title="Specifying capabilities">
+navigator.serviceWorker.register('/pw/app.js').then(function() {

Nit: we should rewrite this using async/await. It will make it much easier to read. 

-- 
You are receiving this because you commented.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/payment-handler/pull/170#pullrequestreview-77950831

Received on Monday, 20 November 2017 22:55:49 UTC