Get more for your money each Wednesday with big savings on selected extensions. Shop this week's deals.
Product Icon

WooCommerce Subscriptions

by Woo
Let customers subscribe to your products or services and pay on a weekly, monthly or annual basis.

Uniform Hook for Subscription complete

I was using => woocommerce_subscription_payment_complete to run some code. According to the docs – https://woocommerce.com/document/subscriptions/develop/action-reference/ I expected it to fire everytime a subscription payment was confirmed / paid.

However what i’ve found is that when early renewals are made – the hook isn’t firing.

Here are the steps to reproduce the error.
1. Manual payment needs to be enabled.
2. After first order is successful go to my account > subscription > view subscription click renew
3. If you’re in a live environment you will get the pay now button instead of being redirected to checkout
4. Both hooks `woocommerce_subscription_renewal_payment_complete` and `woocommerce_subscription_payment_complete` do not run.
https://prnt.sc/r5ums7 – since both of them are here includes/class-wc-subscription.php – line no 1742

Author

Current Status

Open

Last updated: February 26, 2020

0 comments

Log in to comment on this feature request.

Use of your personal data
We and our partners process your personal data (such as browsing data, IP Addresses, cookie information, and other unique identifiers) based on your consent and/or our legitimate interest to optimize our website, marketing activities, and your user experience.