Re: [w3c/payment-request] Retrying a payment (#705)

Got it, thanks! I knew I was missing something obvious.

It seems like it would be kind of nice if this were tied to `complete()`; e.g. `complete("fail-but-fixable", errors)`. One idea is that the promise returned by such a `complete("fail-but-fixable")` call stays pending until the user fixes their mistake and presses "Pay" again, at which point the other `PaymentResponse` attributes are hopefully changed, and they can validate and call `response.complete("success")`. Maybe that's too weird though...

Basically my confusion is that it seems like we're telling people to sometimes call `complete()` when they get a response, and sometimes call `retry()` when they get a response. This muddles the previously clear path of "always call `complete()`".

-- 
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/705#issuecomment-386144520

Received on Wednesday, 2 May 2018 22:46:39 UTC