- From: Marcos Cáceres <notifications@github.com>
- Date: Tue, 26 Jun 2018 19:13:40 +0000 (UTC)
- To: w3c/payment-request <payment-request@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Tuesday, 26 June 2018 19:14:04 UTC
Hacky workaround: ```JS const response = await request.show(); // sheet is waiting for complete const didPaySucceed = await fetch("/pay", {method: "POST", body: response.toJSON()}); //... bit's taking ages... so sheet shuts down or user hits "ESC"! // finally, we get "didPaySucceed" result. try { // oh crap, invalid state error! The sheet was closed! await request.complete("success"); } catch(err){ // site: we got this, show success or error. displayCompleteResult(didPaySucceed); } ``` -- 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-400430088
Received on Tuesday, 26 June 2018 19:14:04 UTC