Simple PayPal IPN script

Discussion in 'PHP' started by xTutorials, Sep 21, 2011.

  1. #1
    I am in search for a simple (and if possible free) payPal IPN script. I don't want something fancy with a shopping card or anything. All I want is to have a buy button and after the user pays I need the script to fill in info about the transaction inside a database (like transaction ID, item bought and email used to pay). No file needs to be downloaded after that or anything fancy. Maybe a "Thank you for buying message". But I can do minor changes to that since I have experience with PHP and MySQL...just not with the PayPal IPN api.
    I tried the PayPal script generator here: https://www.paypaltech.com/SG2/ , but I don't really know how exactly to use it. I set up the file on my server and if I enter the URL manually I do get an error on my email. But if I go to the paypal IPN script test from developer.paypal.com and enter the url to the script, set everything (Transaction Type: Web Accepted, Payment Status: Completed) and hit send IPN button, no entries are added to the mysql databases and no error messages are send to my email.

    Thanks for any help on this matter
     
    xTutorials, Sep 21, 2011 IP