I am integrating Paypal to my site. When a user wants to buy using Paypal, he clicks on a button that displays the paypal website in a lightbox (iframe). When the user is done with its purchase, paypal redirects in this iframe to a url. I set the URL to something like
http://www.example.com/App.html#!myPlace;return=true;id=154
In the prepareFromRequest I processed the parameters. The issue is that the presenter in which the user clicks the button, and the presenter in the iframe after the redirection are different. The one in the iframe is a new one. Presenters are singleton but since the redirection is in an iframe, I guess that's why a new instance is created.
I would like to communicate from the presenter in the iframe to the one outside the iframe. I tried using events but the handler is only executed in the iframe presenter. I suspect that in the iframe a new event bus has been created.
In other words
The goal is to talk to the start place presenter from the iframe presenter knowing that they don't share the same event bus.
Any ideas?