- From: Rouslan Solomakhin <notifications@github.com>
- Date: Thu, 17 Nov 2016 12:48:04 -0800
- To: w3c/browser-payment-api <browser-payment-api@noreply.github.com>
- Message-ID: <w3c/browser-payment-api/pull/316/review/9114181@github.com>
rsolomakhin commented on this pull request. > @@ -523,6 +524,60 @@ </li> </ol> </section> + <section> + <h2> + <code>canMakeActivePayment()</code> method + </h2> + <p> + The <dfn>canMakeActivePayment</dfn> method is called when the page wants to know if the user has a payment method available to use for payment before calling <a data-lt="PaymentRequest.show">show</a>. The <a>canMakeActivePayment</a> method returns a <a>Promise</a> that will be resolved when the <a>user agent</a> has determined if at least one method is available from <a>supportedMethods</a> data. In order to prevent the page from probing different payment methods supported by user, <a>canMakeActivePayment</a> can only be called once per top-level domain. Multiple calls to <a>canMakeActivePayment</a> will result in cached response from previous call. To reduce privacy risks, user agents MAY limit calls to <a>canMakeActivePayment</a> for a certain time before invalidating the cached response per top-level domain. Developers can call <a>canMakeActivePayment</a> multiple times with same set of <a>supportedMethods</a> per top-level domain. Great to see that user agent MAY limit calls to `canMakeActivePayment()` for a period of time. Let's specify that the limitation is accomplished via rejection of the promise with `QuieryQuotaExceed` error. -- 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/browser-payment-api/pull/316#pullrequestreview-9114181
Received on Thursday, 17 November 2016 20:48:39 UTC