PayPal with PHP

They have: 2 posts

Joined: Mar 2008

I have implemented an online payment system for my website. When a user selects a booking, the payment amount and name of that booking is stored in a link which points to paypal. I then use the php "header" function to direct the user to paypal. What I want to know is if there is any way for me to know whether the user did submit payment, and if so, direct them to a page after payment where I can check for a booking id variable and then update that record in the booking tables.

Heres the link I'm using to go to paypal:

https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=myemail.com&i...

Many thanks,
Karl.

pr0gr4mm3r's picture

He has: 1,502 posts

Joined: Sep 2006

PayPal's IPN Feature is one of the sure ways you know you were paid.

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.