You can't delete fees added by a plugin based on cart items total mount.
As your plugin doesn't handle a min or max cart amount condition, disable the fees first from it (or disable the plugin) and use instead the following:
add_action( 'woocommerce_cart_calculate_fees', 'fee_based_on_payment_method_and_total' );
function fee_based_on_payment_method_and_total( $cart ) {
if ( is_admin() && ! defined('DOING_AJAX') )
return;
$threshold_amount = 300; // Total amount to reach for no fees
$payment_method_id = WC()->session->get('chosen_payment_method');
$cart_items_total = $cart->get_cart_contents_total();
if ( $cart_items_total < $threshold_amount ) {
// For cash on delivery "COD"
if ( $payment_method_id === 'cod' ) {
$fee = 14.99;
$text = __("Fee");
}
// For credit cards (other payment gateways than "COD", "BACS" or "CHEQUE"
elseif ( ! in_array( $payment_method_id, ['bacs', 'cheque'] ) ) {
$fee = 19.99;
$text = __("Fee");
}
}
if( isset($fee) && $fee > 0 ) {
$cart->add_fee( $text, $fee, false ); // To make fee taxable change "false" to "true"
}
}
And the following code to refresh data on payment method change:
// jQuery - Update checkout on payment method change
add_action( 'wp_footer', 'custom_checkout_jquery_script' );
function custom_checkout_jquery_script() {
if ( is_checkout() && ! is_wc_endpoint_url() ) :
?>
<script type="text/javascript">
jQuery( function($){
$('form.checkout').on('change', 'input[name="payment_method"]', function(){
$(document.body).trigger('update_checkout');
});
});
</script>
<?php
endif;
}
Code goes in functions.php file of the active child theme (or active theme). Tested and works.
related: Add fee based on specific payment methods in WooCommerce