Some payment methods such as Cash on Delivery can be costly to the merchant. They incur additional fees or require extra labor. Easy but not the best solution would be to disable these costly payment methods altogether. However, some customers are accustomed to certain payment methods and if they are not available, they won’t order or order from elsewhere.
One way to encourage customers to use more convenient payment methods is to add additional fees to certain methods. Even if the customer should still select the costly method, the fee will bring additional revenue and offset costs to the merchant.
Fortunately it’s relatively easy to add payment method fees in WooCommerce. Below you will find a code snippet which will add $ 5 to the Direct bank transfer (BACS) method.
The easiest way to add the snippet is Code Snippets. Alternatively, it can be added to theme’s functions.php file.
After adding the snippet you should have $ 5 fee for Bank transfer like this:
How to find payment method IDs?
You will need to know the payment method ID before adding a fee to a certain payment method. The easiest way to find the ID is to head to WooCommerce > Settings > Payments and click on the payment method. The payment method ID should appear in the URL after section:
Add payment method fee with a plugin
If you would like to add the fee with a plugin or need additional conditionality such as fee per product category, Conditional Payments Pro is a great option. You can add fees to multiple payment methods and have conditions such as shipping class, product category, customer role and much more.