Jump to content

Subscription Service


imperialized

Recommended Posts

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.

Link to comment
https://forums.phpfreaks.com/topic/105693-subscription-service/
Share on other sites

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....

 

Link to comment
https://forums.phpfreaks.com/topic/105693-subscription-service/#findComment-541520
Share on other sites

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

Link to comment
https://forums.phpfreaks.com/topic/105693-subscription-service/#findComment-541582
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.