marcoscaceres commented on this pull request.
> + algorithm checks for existence of enrolled instruments in addition to
+ supporting <a>payment method</a>.
+ </p>
+ <ol class="algorithm">
+ <li>Let <var>request</var> be the <a>PaymentRequest</a> object on
+ which the method was called.
+ </li>
+ <li>If <var>request</var>.<a>[[\state]]</a> is not "<a>created</a>",
+ then return <a>a promise rejected with</a> an
+ "<a>InvalidStateError</a>" <a>DOMException</a>.
+ </li>
+ <li data-tests=
+ "payment-request-hasenrolledinstrument-method-protection.https.html, payment-request-canmakepayment-method-protection.https.html">
+ Optionally, at the <a>top-level browsing context</a>'s discretion,
+ return <a>a promise rejected with</a> a "<a>NotAllowedError</a>"
+ <a> DOMException</a>.
```suggestion
<a>DOMException</a>.
```
--
You are receiving this because you commented.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/payment-request/pull/833#pullrequestreview-204464882