Payment Gateway Based Fees and Discounts for WooCommerce Pro plugin allows you to set fees or discounts based on the payment gateway that the customer selects at Checkout. You can add fees and discounts for all standard WooCommerce payment gateways (Direct Bank Transfer (BACS), Cheque Payment, Cash on Delivery and PayPal) as well as any custom payment gateways added. With this plugin, you can set fixed or percentage-based fees, apply region-specific charges, and even skip fees for specific order subtotals. It also provides the flexibility to display transparent fee details on product pages, helping you build customer trust and reduce cart abandonment.
Setup and Installation
↑ Back to top- Download the .zip file from your WooCommerce account.
- Go to: WordPress Admin > Plugins > Add New and Upload Plugin with the file you downloaded with Choose File.
- Install Now and Activate the extension.
More information at Install and Activate Plugins/Extensions.
Setup and Configuration
↑ Back to topYou can add fees or discounts on checkout page based on the payment gateway option that the customer selects. Say you want to charge a fee of $10 when customer selects Cash on Delivery payment option on Checkout. This is possible by adding various settings in Payment Gateway Based Fees and Discounts for WooCommerce Pro plugin. Let us discuss General settings in this post.
General Settings
↑ Back to topOnce your plugin is active, you will find a new tab named Payment Gateway Based Fees and Discounts under WooCommerce -> Settings. To go to the General settings page, go to WooCommerce -> Settings -> Payment Gateway Based Fees and Discounts -> General.
Default General page appears as shown below:


The General page consists of 7 sections:
1. Payment Gateway Based Fees and Discounts
2. Fees/Discounts per Product
3. General Options
4. Max Range Options
5. Cart Options
6. Advanced Options
7. Reset Settings
Payment Gateway Based Fees and Discounts
↑ Back to top
When you tick the Enable plugin checkbox of Payment Gateway Based Fees and Discounts setting, you will be able to add extra fees or discounts for WooCommerce payment gateways.
Enabling this setting is mandatory for all other setting to work in the plugin. Therefore, only after you enable Payment Gateway Based Fees and Discounts setting, the added settings on Info, Global Extra Fee page and all WooCommerce payment gateways pages (Direct bank transfer, Cheque payments, Cash on delivery and PayPal) will be effective.
By default, this option is enabled.
Fees/Discounts per Product
↑ Back to topUnder this section, you can add fees and discounts for payment gateways on a per-product basis.
Payment gateway fees and discounts on a per-product basis

By default, this setting is disabled. When you tick the Enable checkbox, Payment gateways fees and discounts on per product basis settings will add a meta box with fees settings to Edit page of all WooCommerce products.


This meta box will list all the WooCommerce payment gateways and custom-added payment gateways. The different payment gateways available on your store will appear in tabs form as shown above. Each tab will have a Fees/Discounts section, Additional Fees/Discounts section, and General section.
Different settings under each section are explained in detail in the Payment Gateway settings post.
Add product title to fee/discount title
This option allows you to add product title to the fee/discount label on the Checkout page of a Variable product. By default, Add product title to fee/discount title option is disabled.

Let us understand this using an example. Consider a variable product Mint Orange Juice – Two where you charge an additional fee of 5% for Direct bank transfer payment gateway. So when this setting is disabled, only fee/discount title which is Additional 5% Fee will be displayed on the Checkout page when Direct bank transfer payment gateway is selected.


Now when you enable this setting, a product title which is Mint Orange Juice – Glasses: Two will also appear with the fee/discount title – Additional 5% Fee.
Checkout page display
This way adding a product title can be useful while adding fees/discounts for variable products.
General Option
↑ Back to topThis section has one setting namely Merge all fees. There are payment gateway fees and Global Extra fee that you can add to an order before customer places the order. So when you enable settings for applying both these fees to the order, then it is displayed separately by default.
But if you enable the Merge all fees option, it will merge both payment gateway fee & global extra fee and display the total as a single fee on the front end.

Let us understand this with an instance. Say you add Payment gateway fee of $10 for Cash on delivery option and Global extra fee of $10 additionally. So when you add a product Choco lava cake in the cart and select Cash on Delivery option on Checkout page, both these fees will be displayed separately.

Now when you enable the Merge all fees option under General options section, it will combine both these fees and display a total fee on the Checkout page. Hence, it will charge total COD fee of $20 on the order and is displayed on a single line and will show the Fee title which is saved for individual payment gateway.

The Merge all fees setting is disabled by default.
Max Range Options
↑ Back to topThis option allows you to set maximum total discount and maximum total fee that you can apply on the order. This means if you want to give a discount or charge a fee to the customer then it should not exceed the amount you add in this option.

Let us understand both these options using an instance.
Max total discount
You can add maximum discount amount that you want to give to your customer in this setting. To add discount amount, use a negative sign (-). For instance, say you want to give maximum of $20 discount, hence you will add -20 in the Max total discount field.

So when you add payment gateways discount, it should not exceed $20. If it exceeds $20, then the applicable discount will be $20 which is set in the Max total discount setting. So say if you add COD discount of $30 and set the Max total discount to $20.

This means the COD discount added is more than Max total discount. So on Checkout page, you will see COD discount given is $20 which is maximum, even when you have set COD discount to $30.

By default this option is set to 0. When it is 0, this setting is disabled.
Note – This setting is applicable only when any discount is added in the individual payment gateway otherwise it will not be considered.
Max total fee
You can add maximum fee amount that you want to apply, in this setting. Payment gateway fee will be added when customer selects that particular payment gateway at the Checkout. This fee amount cannot exceed the amount that you add in Max total fee setting. If it exceeds then the amount added in Max total fee field will be applicable.
For instance, say we set the Max total fee to $20. This means maximum of $20 can be charged on an order at Checkout.

Now say you add Cash on delivery fee as $30 in the backend.


So when a customer selects Cash on delivery option for placing the order, he will be charged a COD fee of $20, even when it is set to $30. This is because the maximum fee to be charged is set to $20 under General settings.
COD fee charged is $20
By default, this is set to 0 and when it is 0, this setting is disabled.
Cart Options
↑ Back to topThe Hide gateways fees and discounts on cart page setting when enabled, will hide the applicable payment gateway fees or discounts on the Cart page. By default, this setting is disabled and to enable it, tick the Hide gateways fees and discounts on cart page checkbox.

Let us understand this using an instance. Say a COD fee of $30 is applied on the order and displayed on the Cart page for Choco lava cake.

Now if you wish to hide the COD fee on Cart page, enable the settings. You will see the Cart page displays no COD fee and hence the total amount is $80.

This way you can choose to not display the payment gateway fee on the Cart page but instead calculate the fees on the Checkout page when the customer places the order.
Advanced Options
↑ Back to topThis option allows you to delete all the data stored in the plugin. So when you click the Delete button, all your plugin’s options and products meta will be deleted.

This option will delete all the data permanently which you will not be able to retrieve using any undo action. Hence take utmost care while using this option.
Reset Settings
↑ Back to topThis setting allows you to reset all the settings on the General settings page. Tick the Reset section settings checkbox to reset the settings.

When you reset the settings, it will enable Payment Gateway Based Fees and Discounts option and set Max Range options to 0. Here when you reset the settings, there is an impact on the front end.
For instance, you add COD Fee of $20 and Extra Fee of $10 in the backend and enable the ‘Merge all fees’ setting. This will merge both fees and display it as COD Fee of $30 on the Checkout page. Now say you reset the General settings, this will disable the Merge all fees setting and hence the front end will display both COD Fee and Extra Fee separately.

This way Reset setting option has impact on the front end behaviour.
Additional Settings
↑ Back to top- Info Settings
- Global Extra Fee Settings
- Payment Gateway Settings – Cash on delivery
- Add the fees or discounts based on the selected Shipping Method
- Adding payment gateway fees on WooCommerce Order page
FAQs
↑ Back to top- Can I setup fees for each payment gateway at the product level?
Yes, settings can be created at the product level by enabling WooCommerce->Settings->Payment Gateway Based Fees and Discounts->General->Payment gateways fees and discounts on per product basis. - Does it work with Variable Products?
Yes, the plugin works with variable products. - Can I display the fee information on the product pages?
Yes, it is possible to display the fees on the single product pages. Please enable the settings in WooCommerce->Settings->Payment Gateway Based Fees and Discounts->Info. - Can I apply the fees as a percentage?
Yes, the fees can be applied as a fixed value or a percentage of the total. - Can I exclude shipping charges for total fee calculation?
Yes, the fees can be calculated by excluding the shipping charges. - Can I apply taxes on fees?
Yes, taxes can be applied on the fee. - Can I merge all fees to display as a single component in the Cart?
Yes, the fees can be merged and displayed as a single component. - Does your plugin comply to the GDPR guidelines?
We have made every effort to make our plugin compliant to the GDPR guidelines. As a part of compliance we do not capture any data of end users and customers without consent.
Questions & Support
↑ Back to topHave a question before you buy? Please fill out this pre-sales form.