Jump to content

Recurring Payments


TJMAudio

Recommended Posts

Work out what the date will be one year from now (or one year from the time they sign up). Store that in the database. Then every time they log in, check to see if today's date is greater than the time you stored in the database. If it is, their subscription has run out.
Link to comment
https://forums.phpfreaks.com/topic/16876-recurring-payments/#findComment-71080
Share on other sites

I would simply record the date they subscribed and set up a cron job to run once a day that would:

a, if the current day is one week away from expiry of subscription, notify the user by email that they will be biled in 7 days time if they don't unsubscribe.
b, if they have not unsubscribed and the subscription date is a year passed then bill them once more.

Beauty of this is u set it up and never have to bother again until something crashes...
Link to comment
https://forums.phpfreaks.com/topic/16876-recurring-payments/#findComment-71085
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.