Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Feb 2010
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Need Help - Adding information to a database after purchasing something with paypal

    Ok, so I am selling software online. My program uses an online database to check if the user is allowed to use the program, and so far I have had to manually add the users to the database for the info to work.

    I want users to be added to the database on successful purchase of my program through the buy it now button on my website. The only way I can think to do that would be through a php page that a user is redirected to after purchase (a feature of paypal), but I don't see how that would be secure as any user could just type that in their browser.

    I also think that I could add code to the button to submit a php page, but then if they do not purchase, they are still added.

    I also need to note that the paypal "buy it now" button has two options that a user must input for it to work - a desired username and another field.

    Ideas?
    Last edited by xvisceral; 02-28-2010 at 06:28 PM.

  • #2
    Master Coder mlseim's Avatar
    Join Date
    Jun 2003
    Location
    Cottage Grove, Minnesota
    Posts
    9,395
    Thanks
    8
    Thanked 1,078 Times in 1,069 Posts
    Paypal has a thing where they return after a "successful" transaction,
    along with an IPN (special key). Read more about that on their development site:
    https://developer.paypal.com/

    In fact, you create a sandbox account and use it to test your site exactly like
    your REAL paypal site, using fake credit cards. Once you get it working, you switch
    back to your real paypal account. A ton of great developer tools too.

    EDIT:
    Keep an eye on this thread ... similar to what you are doing?
    Paypal IPN help!!


    .


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •