Hi Folks,
I could use some insight on something I’m missing.
Our team has inherited a site using s2Member Pro plugin: cattlemaps.com. It’s configured to use Stripe for payments. A free trial period is followed by a paid one-year membership. Memberships are configured to auto-renew after that first paid year.
Our desire is to send the member an [auto] renewal notice 30, 10,… days prior to the renewal date. We have this working, by following the configuration instructions for renewal email notices for Next Payment Time. From that article, we have implemented the code snippet in an mu-plugin:
add_filter('ws_plugin__s2member_options', function($options) {
$options['pro_eot_reminder_email_on_npt_also'] = '1';
return $options;
});
As a result, the renewal notices ARE now being sent, which is great. Now, to cancel the membership, we’ve implemented a Stripe Billing Cancellation form using this shortcode:
[s2Member-Pro-Stripe-Form cancel="1" desc="This will cancel your account. Are you sure?" unsub="0" captcha="0" /]
Sure enough, when the member uses this form to cancel their subscription, Stripe cancels the membership and no auto-renewal occurs within Stripe. However, the member continues to receive renewal email notifications from the plugin at the 30, 10,… day intervals leading up the [now] cancelled membership.
By the way, should this have anything to do with it, we do have a webhook registered with Stripe:
https://cattlemaps.com/?s2member_pro_stripe_notify=1
Q. What am I missing in order to have the renewal emails stop after a membership has been cancelled?
Thanks, anyone.