When the checkout page is generated by 'woocommerce_checkout' shortcode, we can use 'woocommerce_cart_calculate_fees' hook to add an additional fee for any specific payment method with this js code to add the fee and change the total amount.
$("body").trigger("update_checkout");
But if the checkout page is generated by Woocommerce Gutenberg block, this code doesn't work.