imperialized Posted May 15, 2008 Share Posted May 15, 2008 Ok, well.. here I go I have a website that I wish to offer a subscription service for, to be paid with through paypal. (credit cards/etc in the future) How would I go about writing a page that will automatically detect payments? Once this is done, set the Account to 'subscribed' (i know how to do the query update, this isnt a problem.) Something like.. when you purchase a service package for webhosting, it sets the account up and gets you rolling. I just need to know how to go about writing a Subscription thing so I can check when subscriptions were made. I hope this somewhat makes sense. I just don't know where to start the process. I know how to check if a subscription is running low by checking the date, etc, but where to begin? Any help is appreciated. Quote Link to comment https://forums.phpfreaks.com/topic/105693-subscription-service/ Share on other sites More sharing options...
redarrow Posted May 15, 2008 Share Posted May 15, 2008 1. The user hits subscribe.. 2. User fills in all the form 3. The database updates all the info, Also you have a field called ((valadated INT NOT NULL)) at defualt 0. 4.afther the user complete there info from a form there prompt to a paypal page to pay... 5. once you get the confimation from paypal via ipn that paypal updated your database with the users payment now update that users valadated field to a 1 meaning they paid for there subcription.... Quote Link to comment https://forums.phpfreaks.com/topic/105693-subscription-service/#findComment-541520 Share on other sites More sharing options...
zq29 Posted May 15, 2008 Share Posted May 15, 2008 PayPal has a system called IPN (Instant Payment Notification) that can be switched on in your PayPal account, which you also point at a script on your server. Whenever you receive a payment through your website, PayPal sends the information to the script you told them about. https://www.paypal.com/ipn Quote Link to comment https://forums.phpfreaks.com/topic/105693-subscription-service/#findComment-541582 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.