I am managing subscriptions to my licenses through Stripe, which calls a Cloudflare worker. And that worker calls Cryptlex API for license creation/renewal.
Currently, I am looking for active license and renewing it by 30 days when the payment happens successfully.
But in the case when license renewal is attempted (for whatever reason) post the license expiry, how should I handle renewals? What is the most commonly accepted case here? Creation of a new license, or renewal of the expired one? And how do we renew the expired license?