Monday, 5 June 2017

How to implement expiry dates for a user account in nodejs

I'm building an application using express on the backend coupled with mongodb as my database and react on the front end. I will be having premium features that can only be accessed by payment. So I was thinking of using the PayPal api for this. i plan on having a field in my user model whether or not they are subscribed. How do I implement an automatic job to set the status of this premium field to false when the expiry date time has passed. Do I do a cron job for this? I'm abit lost.



via Nate

No comments:

Post a Comment