Page 1 of 1
How to make a PHP protected page ?
Posted: Thu Apr 02, 2009 8:45 am
by chrisjchrisj
I'm using a PHP script and am adding a Paypal link, so when the user/purchaser returns to the PHP script he is routed to a protected page that only users who have made the payment can access.
Can someone help me with the protected page part?
Some clues, any help would be appreciated.
Re: How to make a PHP protected page ?
Posted: Thu Apr 02, 2009 11:17 am
by greyhoundcode
When a customer finishes paying on PayPal's own website, they are sent back to a page designated by you - which by the sound of it you are already well aware of. PayPal will send a number of PDT variables describing the transaction which has taken place, you can
see a full list here.
Take note of the custom variable. Set this before they leave for the payment pages, then check it when they return - you then know it is the person who just paid and not a random surfer. As per the PayPal rules (I think), you should display a receipt of some kind at this point and that's what the other PDT variables are for.