Paypal ipn integration with php mysql smarty

hi,
i'm looking for a easy to go paypal ipn integration script.
What i want is once client make payment, the database should be updated with paypal transaction id.
my sql table which i want to update with paypal transaction id is simple, with fields like
id
date
package
cost
status
paypal txn id  // to be updated...

How can i achieve this...
if possible give a working code...
thanks
zia
LVL 1
global_expert_adviceAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

AUCKLANDITCommented:
Have the notifications page set.

You need to send a custom var (random number etc) to paypal and save that same custom var to your database

then in your notification page

$key = $_POST['custom'];

$txn_id = $_POST['txn_id'];

then update paypal_txn_id to $txn_id where customkey = $key

there are a number of scripts out there that do this nicley...
0
AUCKLANDITCommented:
http://www.opendb.net/element/369.php thats an example of one I have used before.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
global_expert_adviceAuthor Commented:
okay solution
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
PHP

From novice to tech pro — start learning today.