Wells-it.com - Web Hosting

Paypal coding

You are viewing this site as a guest. Join our community to get your questions answered and share knowledge. Active members may advertise and ask for a website critique.

He has: 43 posts

Joined: Apr 2004

Hi,
I want to add a payment gateway to a site and was looking at using good ole Paypal.
The thing Im not clear on is how do I set it up so that once a successful payment has been made a field in a Mysql database gets updated ?
I mean, can I setup paypal so it passes a variable back which I could look for and then run a bit of code to update the database ?

Thanks,

andy206uk's picture
DeveloperModerator

He has: 1,754 posts

Joined: Jul 2002

Look in their help files regarding the paypal IPN feature. They have a script you can adapt for most scripting languages. (I adapted the PHP script for my site!). More info at the URL below:

http://www.paypal.com/cgi-bin/webscr?cmd=p/xcl/rec/ipn-intro-outside

Andyk

Blog of a Web Designer
Give a man a fish and you feed him for a day. Teach him to use the Net and he won't bother you for weeks.