Subscription still in on hold after payment completed
-
Hello
we have a payment problem.
We use woocommerce subscriptions. When the user pays for a subscription and the payment response is returned, it happens that the order is placed in “completed” but the subscription remains on “pending”.We tried to add these lines of code in the plugin, in the WooCommerce.php file, inside the “woocommerce_order_status_completed” function:
$ wcorder = new WC_Order ($ order_id);
$ wcorder-> payment_complete ();
At first it gave us the answer of ‘actived’ subscription after a few seconds it came back ‘on hold’ for subscription.
The order is correctly on completed status so the problem is only in Subscription sub module.
- The topic ‘Subscription still in on hold after payment completed’ is closed to new replies.