WooCommerce Subscriptions – Tag for Automatic Payment Retries ALL failed
The idea is for a new tag that is applied when all automatic payment retries for a WooCommerce subscription fail. There is currently an option for a payment failing, but not for ALL payments failing.
Basically, if this tag were present, an email campaign could chase payment etc.
I have contacted WooCommerce and no such hook exists in the codebase, however they have shared some code that calculates this based on existing WooCommerce hooks – available here: https://github.com/Prospress/woocommerce-subscriptions-cancel-after-retry
The code above sets a subscription to cancelled when all automatic payments fail, but a minor amendment could change this to do anything – theoretically in WP Fusion it could provide an opportunity to apply a tag.
There is no easy way to do this presently, as monitoring order statuses is difficult due to subscriptions cycling through "pending payment" even when payment is successful. If a tag is set to apply on order "failed", it is applied in too many circumstances and not just when all automatic payments fail.