Hello! I'm writing a script and I'm currently doing the billing section. I need the user to pay for the subscription, and after done paying I want to make a script to automaticly create the users account in my database. The creating the user's account part I can do, however the automatically after paying part is where I'm not so sure. I was thinking of, when the user clicks purchase through paypal, a randomly generated string of numbers is entered into a table in SQL along with the buyers IP, and the buyer's account details, then after paying I use the the return address variable in paypal to go to verification.php?id=that randomly generated string, and from there it checks to see if the verification code is correct and IP. However, I'm wondering if this is a logical way of doing this? Thanks, David
I once wrote a quick and dirty paypal script to add on to an already existing subscription service that was taking money via ACH and mailed checks, and handling account activations and deactivations manually -- every month. Anyway, my "kludge" was to put the account number into the paypal subscription payment form. Then, I created a script on the back end to - a couple times per day - pull recent transactions to paypal, see if any were new, and credit them to the correct account, using that account number I placed in the transaction meta data. There are more direct ways of having your code integrate w/ paypal, but my way was very easy. IF you're not too tied to what you're doing, I would suggest buying something like amember to handle all of the billing and subscriptions, rather than rolling your own.