Forums

PHP

This topic is locked

PayPal IPN and PHP

Posted 23 May 2002 10:25:14
1
has voted
23 May 2002 10:25:14 A H posted:
Hi,

I'm trying to find the easiest way to test if a PayPal payment has been successful.

This is what I had in mind.

1. User clicks on button and goes to paypal
2. User pays and is directed to my "successful url" as per the form.
3. The successful page tests if the user has come from paypal. Maybe through a variable that is sent from paypal (i thought i read somewhere that there were a bunch of variables sent to the successful page)
4. Or even just a check refferer script so that someone cant just go directly to my success page.
5. If the transaction isnt successful they go to the unsuccessful page anyway.

The main point is that i dont want someone to go to the success page directly.

I have looked at IPN and it confuses me - alot.

Any help would be great.

Thanks,

Aaron

Reply to this topic