• Resolved anil2694

    (@anil2694)


    if(!function_exists('woocommerce_available_payment_gateways_callback')){
        function woocommerce_available_payment_gateways_callback($_available_gateways){
            if(!is_admin() && !is_wallet_rechargeable_cart()){
                foreach ($_available_gateways as $id => $gateway){
                    if('wallet' != $id){
                        unset($_available_gateways[$id]);
                    }
                }
            }
            return $_available_gateways;
        }
    }
    add_filter('woocommerce_available_payment_gateways', 'woocommerce_available_payment_gateways_callback');

    I am using the code you have thrown above on this issue, but I want it to be deducted from the balance when you say payment while in the basket without going to the payment page. Can you help me with this?
    I want to complete the order in the cart and reduce the balance before coming to the checkout page.

    • This topic was modified 4 years ago by anil2694.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘how to make payment through wallet only’ is closed to new replies.