This is a great question.
If there's no native way, I would check for a expected return pattern and if that's not present then I would redirect to the desired view.
Thanks jgarifuna. I guess thats where my problem lies. Is there a method to check for whether a certain view is being rendered? In this case all my layout may be fine but if there is a problem connecting within the iframe it fails without an App error...
Any chance you can find out why it's failing on PayPals end?
jasonlewis said:
Any chance you can find out why it's failing on PayPals end?
Well I've started the process, but knowing Paypals Tech Support it may be some while!
If the Paypal stuff is happening in an iframe, then the view will already have been completely rendered before the problem actually occurs, meaning Laravel can't really help you here. You could possibly look at some Javascript solutions, using Javascript to detect whether the contents of the iframe loaded correctly and then redirect to another URL if it didn't. Not knowing in detail how the Paypal stuff works though, I can't really offer much more than that rather general, slightly unhelpful suggestion.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community