Retry WooCommerce Subscriptions gateway failed renewals

Recently I had a client come to me who had a gateway error, woocommerce subscriptions was not processing renewals correctly. So after a few days we fixed it but there was about 600 failed renewals for $5 each that needed to be re-entered. Since woocommerce doesn’t have a way to to do this I needed to create a script that would loop through failed and pending orders and try the renewal again. If you use this script just create a plugin file and navigate to ?retry=1  or use the funciton in your own file!

https://gist.github.com/anthonysbrown/f87e220429c13c6913a46ed59f9d158d

 

94 thoughts on “Retry WooCommerce Subscriptions gateway failed renewals”

  1. Hello there! This article couldn’t be written any better! Going through this article reminds me of my previous roommate! He constantly kept talking about this. I am going to send this information to him. Pretty sure he will have a very good read. Thanks for sharing!

  2. Hello there! This post could not be written much better! Reading through this article reminds me of my previous roommate! He continually kept preaching about this. I am going to send this post to him. Pretty sure he’s going to have a good read. Thank you for sharing!

  3. Your style is really unique in comparison to other people I’ve read stuff from. Thank you for posting when you have the opportunity, Guess I’ll just book mark this page.

  4. Next time I read a blog, I hope that it doesn’t disappoint me just as much as this particular one. I mean, Yes, it was my choice to read, nonetheless I genuinely thought you’d have something helpful to say. All I hear is a bunch of whining about something that you could possibly fix if you were not too busy seeking attention.

  5. It’s hard to come by educated people in this particular topic, however, you sound like you know what you’re talking about! Thanks

  6. Howdy, There’s no doubt that your website may be having browser compatibility problems. Whenever I take a look at your blog in Safari, it looks fine however when opening in Internet Explorer, it has some overlapping issues. I simply wanted to give you a quick heads up! Besides that, great blog.

  7. Hi, I do believe this is a great web site. I stumbledupon it 😉 I may come back yet again since I bookmarked it. Money and freedom is the best way to change, may you be rich and continue to guide others.

Leave a Comment