Changes to email behavior upon subscription renewal
by info2072 on 27 Mar 2025 15:25 | 38 Hits | 0 comment(s)
When using Stripe for recurring subscriptions, the subscription reaches its expiration date and expires. Within the following hour, Stripe attempts to process the renewal payment, and if successful, renews the subscription, notifying the site through a webhook.
However, this time window—during which the subscription briefly expires before renewal—causes users to first receive an "Expiry Notification Email," then shortly after an "Approved Email," and also a "Renewal Email."
In practice, this creates significant confusion, as sending three contradictory emails to the user is not feasible.
To resolve this issue, we need one of the following solutions:
Prevent sending the "Expiry Notification Email" for at least 1 hour if Stripe is in use, allowing sufficient time for renewal attempts.
Alternatively, communicate the expiration to Stripe one hour in advance, so renewal occurs while the subscription is still active.
Ultimately, we need to achieve the following:
Notify the user of expiration only when the subscription has truly expired (for example, allowing negative values in the "Send expiration notification email before" field, so that the email is sent only one day after actual expiration).
Notify the user about subscription renewal without previously sending the expiration email.
Clearly distinguish between the initial purchase email and the renewal email.
Support Ticket Reference:
https://www.rsjoomla.com/my-support-tickets/view-ticket/216071-two-emails-at-each-renewal.html