I have a similar problem with this post
Configure PayPal return URL and automatically return it?
However, the solution does not work there. We have an IPN setting, and the POST variables are passed back (the visitor clicks back and can download the purchased PDF files), but then I tried to get rid of the Paypal order confirmation page, which says
You have just completed a payment. The transaction ID for this payment is: XXXXXXXXXXXXXX.
and turned on "Automatic return" in the payment settings of the website, specifying the URL http://www.educted.ca/payment_complete.php , now the POST variables do not return to payment_complete.php - it appears empty. As soon as I turn off Auto Return, the POST variables are displayed correctly and purchased products can be downloaded. Of course I use a Paypal Sandbox account.
<input type="hidden" name="return" value="<?php echo LIVE_SITE;>payment_complete.php"> <input type="hidden" name="cancel_return" value="<?php echo LIVE_SITE; ?>catalog.php"> <input type="hidden" name="notify_url" value="<?php echo LIVE_SITE; ?>ipn.php"> <input type="hidden" name="rm" value="2">
Any ideas?
php return paypal paypal-ipn
Natalia
source share