• Resolved brentologyxx

    (@brentologyxx)


    Hello i need help i want if user click PROCEED ORDER the payment status will automatically completed in order status thanks in advance

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

    (@subratamal)

    @brentologyxx,

    Please use below code snippet to theme function.php file.

    add_action('woo_wallet_payment_processed', 'woo_wallet_payment_processed_callback');
    function woo_wallet_payment_processed_callback($order_id){
        $order = wc_get_order($order_id);
        $order->set_status('completed');
    }

    Cheers!!!

    Thread Starter brentologyxx

    (@brentologyxx)

    thank you so much!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘PROCESSING TO COMPLETED – ORDER STATUS’ is closed to new replies.