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

window.open does not work from paymentrequest event listener below. Is there any way I can pop up a window on ServiceWorker/Payment Handler for user to select a card from a list of cards on indexedDB after 'Pay' button is clicked from the Merchant website. ServiceWorker stored the list of cards on indexedDB during install.

self.addEventListener('paymentrequest', (evt) => {
    console.log('paymentrequest evt is ' + evt);
    var popup =  window.open("", "newWindow", "width=800, height=600");
});

-- 
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

Received on Wednesday, 4 April 2018 01:47:31 UTC