• Resolved mikeemoo

    (@mikeemoo)


    Hey guys

    Fantastic Plugin.

    The issue I am having is that Wallet Payments do not want to set the WooCommerse Order to Complete.

    Any ideas?

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author Subrata Mal

    (@subratamal)

    Please use below code in active theme function.php file to auto-complete order status after placing an order with the wallet.

    add_action('woo_wallet_payment_processed', 'woo_wallet_payment_processed_callback');
    if(!function_exists('woo_wallet_payment_processed_callback')){
        function woo_wallet_payment_processed_callback($order_id){
            $order = wc_get_order($order_id);
            $order->set_status('completed');
            $order->save();
        }
    }
Viewing 1 replies (of 1 total)
  • The topic ‘Not Completing Order’ is closed to new replies.