5

I have stripe connect integrated on my project, stripe verification window opens in popup and when it is closed parent window reloaded.

I was working fine few days ago but now its giving me window.opener is null error following is my code

window.opener.location.reload();
Vikram
  • 3,171
  • 7
  • 37
  • 67

2 Answers2

4

Contacted stripe support, and it does seem to come from some security measure they took, here is a part of the answer I got:

[...] Unfortunately, we don't have a work around for this yet as this change was put in place to prevent a security vulnerability a few months back. [...]

So for now we went to the whole redirect method.

Korri
  • 657
  • 7
  • 22
-1

You are calling this statement after the popup is closed. So window.opener is giving the null pointer error. self.opener.location.reload(); window.close(); or self.close(); Like this reload parent window then close the child window

André
  • 156
  • 1
  • 10