Re: [w3c/payment-request] Clarify the behavior of calling PaymentResponse.complete() while [[retryPromise]] is pending (#795)

Thinking about it, it seems like the spec does need changing. The specified behavior allows for a weird situation where the user can accept a payment that the merchant can never properly complete.

If we want calling complete() while a retry promise is pending to be a fatal error, then I think we need to reject the retry promise and close down the UI in addition to setting complete to true.

If we want it to be non-fatal, then I think the right fix is to throw an InvalidStateError when there is a retry promise but *not* set complete to true until right before the "in parallel" steps start executing.

-- 
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/795#issuecomment-430450543

Received on Wednesday, 17 October 2018 00:49:00 UTC