[w3c/browser-payment-api] Supplement QuoteExceededError with NotAllowedError for canMakePayments (#485)

I think `QuotaExceededError` is the wrong type of error for `canMakePayments`, since the user agent can return it at its discretion - not just when a quota limit has been reached.

For example, a user agent may decide to not service a `canMakePayments` request when in a private browsing mode or similar, or may allow the user the option to decline to reveal their payment methods to the merchant.

In those cases a quota hasn't been reached, the call has simply been denied. I wonder if it would therefore be better to either permit user agents to return `NotAllowedError` instead. It's somewhat of a semantic argument, but otherwise merchants could end up with a scenario when they call that API a single time and get a quota exceeded error, which doesn't make much sense.



-- 
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/issues/485

Received on Tuesday, 28 March 2017 05:14:37 UTC