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

Today, the merchant receives `response` after the user clicks “Pay” - so access to `.updateWith()`, which is only available  via `PaymentRequestUpdateEvent`, is no longer accessible to them. So now they only have one option: call `response.complete(validationResult)`. Remember also that at this point, the payment sheet is showing only a spinner, waiting for the payment to `complete()`.

So, there is fundamentally no way to for the merchant to signal “something is wrong with their email, but the user can fix it!”. That’s what `.retry()` does: it removes the spinner, and brings back the form where the user can fix, for instance, their email. 

Hopefully that makes 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/payment-request/issues/705#issuecomment-386141154

Received on Wednesday, 2 May 2018 22:29:10 UTC