Re: [w3c/payment-handler] window.open not working from paymentrequest eventlistener (#280)

Looks like you resolve the `paymentrequest` promise immediately after posting a message to the window client. Once you resolve the promise, Chrome immediately closes your window, so it is unlikely to have enough time to receive the message from the service worker. Try removing the call to `resolve()` for now and see whether that helps.

When you bring back the `resolve()` function eventually, keep in mind that `"details"` should be a JSON-serializable object, but the example code you showed has a string instead. Try this instead for the "details" member:`"details": {"data": "Hey I got a fetch from you!"}`.

-- 
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-handler/issues/280#issuecomment-378750335

Received on Wednesday, 4 April 2018 21:26:30 UTC