I noticed something weird
the code you provide me can remove Tax from total, and that’s good, that what I want, but when I choose Credit Card and moved to the payments gateway page, the total shows in full with Tax. I think the provided code need something more, cause woocommerce now hide tax for user but it still calculated in the background when passing it to payment gateway.
can you help me with this please