Forum Moderators: coopster
I have a web app using php to open PayPal in a child window.
PayPal will return data back to my backend php by "POST".
When the backend php get the data, I would like to update the parent window to display thank you message.
However, I don't have any idea on how to update the parent window.
All help would be apperciated.
Thanks.
that if you want to redirect the parent window to new location
but if you just want it to refresh do this
window.opener.location.reload()
i think this topic should be moved to the javascript forum
if you want the page to display a thank you msg you can create a function on the parent page which displays thankyou msg then refreshes the page so you can call this function from the popup window using window.opener
You can get the information instantly with PDT turned on and then you can use PayPal's IPN to update your db information any time the status changes and send a message to the visitor or whatever you would like to do.
Personally, I wouldn't make it any tougher than it is...
Turn Auto Return On.
Turn PDT On.
Set Your Thank You Page to Accept & Display PDT Variables.
Be Done With It.
If you're concerned about some visitors not being returned to your thank you page because you do not require an account (it's generally the only way they're not returned automatically) and they have to click 'continue' to get back, then open the payment page in a new window and don't worry about it if they don't see your thank you message... they still get a receipt and obviously didn't want to see your thank you that much or they would have clicked continue instead of moving on to another site.