Hi,
I'm thinking of setting up a paid-for members area on my site, and want to use paypal's IPN system to instantly create and activate accounts, but am a little confised about how it works...
I want users to beable to fill in a form with their desired username and password which will then be stored in a mysql database, then they'll be forwarded to paypal, to fill in payment details, then if the payment is successful it will somehow (by magic? 😃) change a feild in their databse row to show the account is paid for and activated (which will then allow them to login)
Has anyone got some suggestions how to do this, or an example script that I could use/get ideas from.
--
Another way that it could be done is; a user clicks a paypal link, it takes them to paypal they fill in their payment details, if their payment is successful paypal's IPN then posts to my server and enters a new row into a database with their transaction ID and paypal email address, then my server sends an email to their paypal email address with a link for them to click, which will then allow them to update the row in the db containing their transaction ID with a username and password and some other details (I can handle this part)
Which of these mentods (if any) will work, and which would be best?
Any help or examples of doing either of these methods (or something similar) would be most appreciated.
Thanks 🙂