Title: AUTO update @ payment method change2
Last modified: January 18, 2022

---

# AUTO update @ payment method change2

 *  Resolved [abood666](https://wordpress.org/support/users/abood666/)
 * (@abood666)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/auto-update-payment-method-change2/)
 * Hi awesome plugin thanks alot.
 * I have customized a function to add addition fee when someone chose a specific
   payment method. it is adding fine everything is working fine just it doesn’t 
   display, the fee on the checkout totals untill i change the shipping method to
   tiger the update. before i installed the plugin i used this code and it was working
   fine with the standard woocommerce checkout.
 *     ```
       add_action('wp_footer', 'minicart_checkout_refresh_script');
       function minicart_checkout_refresh_script(){
           if ( is_checkout() && ! is_wc_endpoint_url() ) :
       ?>
           <script type="text/javascript">
           (function($){
               $(document.body).on('click', 'input[name="payment_method"],input[name^="shipping_method"],', function(){
                   $(document.body).trigger('update_checkout').trigger('wc_fragment_refresh');
               });
           })(jQuery);
           </script>
           <?php
           endif;
       }
       ```
   
 * I have tried manythings to get this working but i think you guys have a simpler
   answer.
 * best regards thank you,
    -  This topic was modified 4 years, 4 months ago by [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/).
    -  This topic was modified 4 years, 4 months ago by [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/).

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [ThemeHigh](https://wordpress.org/support/users/themehigh/)
 * (@themehigh)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/auto-update-payment-method-change2/#post-15267545)
 * Your issue needs a detailed check. Could you please raise a ticket through our
   website? We hope our technical team will be able to help you.
 * Thank you!
 *  Plugin Author [ThemeHigh](https://wordpress.org/support/users/themehigh/)
 * (@themehigh)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/auto-update-payment-method-change2/#post-15288254)
 * We hope your requirement is achieved.
 * We are going to mark this thread as resolved.
 * Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘AUTO update @ payment method change2’ is closed to new replies.

 * ![](https://ps.w.org/woo-multistep-checkout/assets/icon-256x256.png?rev=1832063)
 * [MultiStep Checkout for WooCommerce](https://wordpress.org/plugins/woo-multistep-checkout/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woo-multistep-checkout/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woo-multistep-checkout/)
 * [Active Topics](https://wordpress.org/support/plugin/woo-multistep-checkout/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woo-multistep-checkout/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woo-multistep-checkout/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [ThemeHigh](https://wordpress.org/support/users/themehigh/)
 * Last activity: [4 years, 4 months ago](https://wordpress.org/support/topic/auto-update-payment-method-change2/#post-15288254)
 * Status: resolved