Reply To: Order Status stays at "Processing"2019-06-20T19:26:02+05:30

Home Forums Core Order Status stays at "Processing" Reply To: Order Status stays at "Processing"

Subrata Mal
Keymaster
Post count: 175

Please use below code in theme function.php file.

add_action('woo_wallet_payment_processed', 'woo_wallet_payment_processed_callbak');
if(!function_exists('woo_wallet_payment_processed_callbak')){
    function woo_wallet_payment_processed_callbak($order_id){
        $order = wc_get_order($order_id);
        $order->set_status('completed');
    }
}