IMPORTANT: This code is made available in the hope that it will be useful, but without any warranty. See the GNU General Public License included with the code for more details. Automattic or WooCommerce support services are also not available to assist with the use of this code.
Cancel a subscription after all failed payment retry attempts have failed.
WooCommerce Subscriptions makes it possible to apply a set of custom Retry Rules to modify the behaviour of the Failed Payment Retry system. However, those rules only facilitate customizing the status applied at the time the retry rule is applied, not the status to be applied after the payment retry attempt is processed.
The default status applied to the order if a retry attempt fails is failed, and the status applied to the subscription is on-hold.
This plugin will transition both the order and related subscriptions for that order to cancelled if all automatical payment retry attemps fail.
To install:
- Download the latest version of the plugin here
- Go to Plugins > Add New > Upload administration screen on your WordPress site
- Select the ZIP file you just downloaded
- Click Install Now
- Click Activate
To keep the plugin up-to-date, use the GitHub Updater.
If you find an problem or would like to request this plugin be extended, please open a new Issue.