Fix an error with Razorpay woocommerce subscriptions plugin

Job ID: 33465721

Budget: ₹600 – ₹1,500 INR

Our website uses woocommerce, woocommerce subscriptions, and Razorpay subscriptions plugins. The issue is - successful recurring payment in Razorpay doesn’t change the woocommerce order status from pending to completed automatically, and hence the subscription is put on-hold by woocommerce and also got paused in the Razorpay dashboard. Fyi, I’ve enabled all the webhooks in Razorpay as well as in the woocommerce dashboard and I’m using the latest versions of all plugins. Everything works fine (first order, pause, cancel, resume) except for the recurring payment status issue that I’ve mentioned. It seems like only woocommerce could communicate with Razorpay and Razorpay couldn't communicate back with woocommerce except for the first order.