I am opening a paypal window from the parent with window.open(). After payment and redirecting back to my page (in the popup window), I would like to close the
window.opener is removed whenever you navigate to a different host (for security reasons), there is no way around it. The only option should be doing the payment in a frame if it is possible. The top document needs to stay on the same host.