Re: [w3c/payment-request] Response timeout could leave page/user in confused state. (#737)

More examples and work arounds at:
https://bugzilla.mozilla.org/show_bug.cgi?id=1447773#c13

But a simple event gets us to:

```JS
const payResponse = await request.show();
const response = await fetch("/process-payment/", { body: response.toJSON() }) 
response.ontimeout = ev => {
  // can show a progress indicator or whatever...
  showInPagePaymentProgress(response);
});
const result = await response;
await response.complete(result)
```

-- 
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/737#issuecomment-400434937

Received on Tuesday, 26 June 2018 19:31:28 UTC