Paypal return URL

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
eektech
Forum Newbie
Posts: 1
Joined: Thu Aug 28, 2008 1:38 pm

Paypal return URL

Post by eektech »

Hi, I'm setting up a donation button using PayPal.

I need the donator to provide a recipient e-mail address to send an e-card to after they donate. I talked to paypal and they said I couldn't do it on the paypal site since I can't alter the pages...etc

Is there a way to see what page someone is linked from? Say I setup the return URL to goto http://www.example.com/return.php, can I verify they came from paypal instead of just typing in the url directly? Or is there a way to pull a variable from paypal when they're re-directed to verify they came from paypal?

Thanks!
User avatar
The_Anomaly
Forum Contributor
Posts: 196
Joined: Fri Aug 08, 2008 4:56 pm
Location: Tirana, Albania

Re: Paypal return URL

Post by The_Anomaly »

I haven't used it myself, but check out getenv() and CGI Environmental variables--specifically HTTP_REFERER. Seems to be what you're looking for.
Post Reply