I want to display a message in php ($mymessage
) after a successful paypal payement.
For example:
- A client want buy my product on www.mysite.com/product where there is a "pay with paypal" button.
- The client pay on paypal's website.
- The client is redirected on www.mysite.com/product where a new message appear (
$mymessage
).
I know it's possible to check with javascript if the payment is done and refresh automatically the page displaying the message.
Someone can show me the way? (link, ideas or script)
Any help is welcome!