Building a user subscription application
- by Tristan O'Neil
Hello,
I'm trying to come up with the best way to handle user subscription and management for our magazine website. What I want to happen is a user purchases a subscription and they are granted online access of a certain membership role for a certain amount of time depending on how many years they subscribed for. I would also like the system to be able to send out emails when a subscription is almost up.
I've seen some third party projects to help accomplish this but I'd prefer to write this from scratch as I want total control over how it works.
Any suggestions would be helpful.
The main thing I can't figure out is how to have an expiring membership. You must keep track of when the user signed up and how long until they should expire.