update woocommere total value on checkout based on selected payment method

solved using jQuery

jQuery( document ).ready(function() {
  jQuery(document).on('change','#payment',function(){
    jQuery( 'body' ).trigger( 'update_checkout' );
   });

});

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)