How to Remove Stripe and Other Payment Gateway Fees from Invoice?>
In WooCoomerce, when a customer pays via Stripe Payment gateway, the gateway fee is visible on WooCommerce Order details as well as Challan Invoice.
Sometimes as a store owner, you may want to hide it from the invoice. To cope with this situation, we are here to guide you on how exactly you can do it.
Removing Stripe and other payment gateway fees from Invoice:
To hide Payment gateway fees from the invoice we need a third-party plugin Code Snippets by Code Snippets Pro.
So, install and activate it, you may notice a new item, Code Snippets, in your WordPress Dashboard.
- Select Snippet > Add New
- Create a new snippet with this block of code and the exact title: woo_invoice_after_total
add_filter( 'woo_invoice_after_total', 'woo_invoice_after_total_callback', 10, 2);
function woo_invoice_after_total_callback( $after_total, $id )
{
return '';
}
You can also follow the image given below:
Now click on the Save Changes button and you’re done!
Using this Snippet you can remove any Payment gateway frees from Challan invoice.