Hi all- > > Has anybody worked with PayPal's Instant Payment Notification? > Not yet, but am about to. we integrated paypal in phpauction. At paypal.com, one you register as developer, you have access to their documentation. That's enough to get it working.
> > How exactly does it work -- will the payer ever go to PayPal's site > > itself (and leave my site for a sec) or will all contact with PayPal's > > servers be handled by my script? > No, the user doesn't 'leave' your site, all the processing goes on behind > the scenes. In our implementation, phpauction set up a form with hidden fields containing the data paypal expects to receive. Once the user submit that form he goes to paypal and makes the payment. In that form you pass to paypay a "Confirm" URL you want your users to be redirected after they do the payment and a "Cancel" URL where you want your users to be redirected if they press Cancel at peupal. What you'll also have to do is to set up the IPN url, where paypal will POST the transaction result in the format described in the documentation. Once your IPN script receives the POST from paypal, it will be able to check the transaction's result and act accordingly (tipically update some database tables). I cannot pass you the entire code since it belongs to the non-GPL version of phpauction but will surelly post some pieces of code here if need it. Cheers Gianluca > > I have to write a system that enables payments via this service, but I'm > > low on documentation and this service is a new one for me. > > > > An overview of the process and pointers would be great! > > Paypal provides some scripts which looks self-explanatory. -- Gianluca Baldo Mallorca 186 - 3º 1ª 08036 Barcelona (Spain) tel/fax +34 93 454 93 24 http://www.phpauction.org http://www.gianlucabaldo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php