[w3c/payment-request] Clarification question for `show()` algorithm (#820)

**TL;DR:** Can `show()` be called on the same instance of `PaymentRequest` multiple times?

The `show()` algorithm includes the following steps:

> 6. If *request*.[[state]] is not "created" then return a promise rejected with an "InvalidStateError" DOMException.
> 7. If the user agent's "payment request is showing" boolean is true, then return a promise rejected with an "AbortError" DOMException.
> 8. Set *request*.[[state]] to "interactive".

It looks like `show()` can be rejected without altering the *request*.[[state]], so the merchant can call `show()` on the same instance of `PaymentRequest`. Is this the only edge case where `show()` does not change state? Or am I reading the spec wrong?

-- 
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-request/issues/820

Received on Thursday, 13 December 2018 16:25:20 UTC