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

rsolomakhin commented on this pull request.



> +          <li>Let <var>methodData</var> be the payment method specific data of
+          <a>PaymentMethodData</a>.
+          </li>
+          <li>If <var>methodName</var> is a <a>standardized payment method
+          identifier</a>, filter based on <a data-lt=
+          "PaymentInstrument.capabilities">capabilities</a>:
+            <ol>
+              <li>For each <var>key</var> in <var>methodData</var>:
+                <ol>
+                  <li>If the intersection of <var>methodData[key]</var> and
+                  <var>instrument.capabilities[key]</var> is empty, return
+                  "false".
+                  </li>
+                </ol>
+              </li>
+              <li>Otherwise, return "true".

Done.

-- 
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#discussion_r152304470

Received on Tuesday, 21 November 2017 15:14:55 UTC