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

jnormore commented on this pull request.



> +            </ol>
+          </li>
+        </ol>
+      </section>
+      <section id="abort-example" class="informative">
+        <h2>
+          Example of handling the <a>AbortPaymentEvent</a>
+        </h2>
+        <p>
+          This example shows how to write a service worker that listens to the
+          <a>AbortPaymentEvent</a>. When a <a>CanMakePaymentEvent</a> is
+          received, the service worker always returns true.
+        </p>
+        <pre class="example js" title="Handling the AbortPaymentEvent">
+          self.addEventListener('abortpayment', function(e) {
+            e.respondWith(true);

Should we provide any guidance around how long a payment handler should (or will be allowed) to block this request before responding?

-- 
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-handler/pull/170#pullrequestreview-45049764

Received on Tuesday, 20 June 2017 07:18:23 UTC