PayPal redirects to the same popup window

后端 未结 3 2077
感情败类
感情败类 2021-02-09 09:30

I integrated PayPal\'s Identity API in my webpage. As usual when user clicks login with paypal(JavaScript button) it opens a new window for login purpose. But after

3条回答
  •  长情又很酷
    2021-02-09 10:17

    Setting top.window.opener.location will update your original "opener" window. You will also need to close the dialog by calling top.close(). This is just an attempt at combining the other two answers and sharing the solution I arrived at with their help. Note that this code is in a url other than the "opener" window.

    
    
    

提交回复
热议问题