• 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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author edward_plainview

    (@edward_plainview)

    I’ll be needing more info. Could you e-mail us the MCC payment ID of the order?

    Also, have you set up WC Subscriptions to use manual payments?

    webanduk

    (@webanduk)

    Hey there just here to help, had my own rounds with this – nothing to do with the payment gateway its the issue or “feature” of the woo subscriptions – it needs the “processing” status between – so set the status after payment to processing then to completed – it will activate the subscription

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Subscription still in on hold after payment completed’ is closed to new replies.