Answer the question
In order to leave comments, you need to log in
How to add a paid subscription to your program?
What are the ways to implement a subscription through an activation key? It is necessary that the program requests the key itself in a month, for example. And how to teach her to check the authenticity of the key (she knew how to recognize her keys)
Answer the question
In order to leave comments, you need to log in
Hello. You can request a key with an interval of 1 month like this:
import calendar
from datetime import date, timedelta
today = date.today()
days = calendar.monthrange(today.year, today.month)[1]
next_month_date = today + timedelta(days=days)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question