Tested Bestseller Documented

Payment Gateway Based Fees and Discounts for WooCommerce

(10 customer reviews)

From: $39.00 / year

Set fees or discounts for WooCommerce payment gateways.

$39.00 Single site1 year of updates and support30-day money-back guaranteeBuy
$149.00 Unlimited sites1 year of updates and support30-day money-back guaranteeBuy
$199.00Unlimited sitesLifetime updates and support30-day money-back guaranteeBuy


Payment Gateway Based Fees and Discounts for WooCommerce plugin extends WooCommerce by adding options to set fees or discounts based on customer selected payment gateway.

Fees and discounts can be added to to all payment gateways, both:

  • standard WooCommerce payment gateways (Direct Bank Transfer (BACS), Cheque Payment, Cash on Delivery and PayPal),
  • custom payment gateways added with any other plugin.

Fees and discounts by payment gateway can be set:

  • globally for all products, or
  • on per product basis.

Plugin requires minimum setup – after enabling the fee/discount for selected gateway, you can set:

  • fee/discount value,
  • fee/discount type: fixed or percent,
  • additional fee,
  • minimum and maximum fee/discount values,
  • minimum and/or maximum cart amount for adding the fee/discount,
  • rounding options,
  • taxation options,
  • shipping options,
  • product categories,
  • customer countries.

To set fees/discounts globally for all products, go to WooCommerce > Settings > Payment Gateway Based Fees and Discounts, and select gateway section:

Checkout Fees and Discounts for WooCommerce - Global PayPal Fees Example

Another option lets you set fees/discounts based on customer’s country (include or exclude).

Checkout Fees and Discounts for WooCommerce - Customer Country

Additionally you can set which product categories should be included or excluded when calculating the fee.

Checkout Fees and Discounts for WooCommerce - Product Categories

To set fees/discounts on per product basis, go to product edit, find “Checkout Fees And Discounts” metabox, and select gateway tab:

Checkout Fees and Discounts for WooCommerce - per Product Fees Example

Additionally you can choose if per product percent fee/discount is applied to the whole cart or only for current product.

Also it’s possible to set if per product fixed fee/discount is applied once or by product quantity.

To set discount instead of fee, just enter negative value for fee value.

Tips & Tricks

You can set different fees to be added for customers from different countries for same gateway. You can do that by using “Main Fee” and “Additional Fee” – each fee has its own “Countries to include/exclude” options. You may also want to add fixed value for both fees – this can be done by using “Global Extra Fee” (in “WooCommerce > Settings > Payment Gateway Based Fees and Discounts > Global Extra Fee”).

For example, let’s say you want to add a PayPal fee: 2,9% + $0,35 for customers from USA and 4,5% + $0,35 for customers from elsewhere. In this case you would need to:

  1. Set PayPal “Main fee” to 2,9% and set “Countries to include” to “USA”.
  2. Set PayPal “Additional fee” to 4,5% and set “Countries to exclude” to “USA”.
  3. Enable “Global Extra Fee”, set it to $0,35 and set “Exclude from gateways” option there to all gateways except PayPal.

If you have “Payment Gateway Based Fees and Discounts for WooCommerce Pro” plugin version below v2.5.0 – you will need to update plugin manually by downloading it from your account page at https://wpfactory.com/my-account/downloads/. After that updates will be done automatically with WPCodeFactory Helper plugin.

Free vs Pro

Pro version has all the same features as free version plus:

  • “All products” payment gateways fees and discounts: Customer countries options (not available in free version)
  • “All products” payment gateways fees and discounts: Customer states options (not available in free version)
  • “All products” payment gateways fees and discounts: Product categories options (not available in free version)
  • “Per product” payment gateways fees and discounts: all gateways (in free version it’s Direct Bank Transfer (BACS) only)

10 reviews for Payment Gateway Based Fees and Discounts for WooCommerce

  1. Rob

    This thing is perfect, however we use dynamic pricing plugins does this offer dynamic pricing 1-20, 50-100 100+ (for example) or do any dynamic pricing work with it out of the box?

    • tychesoftwares

      Hey Rob,

      Thank you for appreciating our plugin.

      Can you please let us know which dynamic pricing plugin you are using on your site? From our plugin, dynamic pricing is currently not possible only the fix fee value is possible to add for the respective payment method.

      We have yet not tested our plugin with any dynamic pricing plugin which we would recommend you to use.

      Can you please let us know your requirement as how the dynamic pricing should work and based on what rules? This information would help us in understanding your requirements and see how we can include it in our future releases.

  2. Mahesh Vanneldas


    I have just installed in it, It works fine when the customers is logged and on checkout page

    BUT, if the customer is using GUEST CHECKOUT then this is not working. Please can you look into it, for us our most of the orders are from GUEST USERS only.

    • Tom Anbinder (verified owner)

      In case if anyone else had similar issues – as we figured out in private emails – the problem was actually not in logged/unlogged users, but in incorrect “Coupons rule” option configuration for the fee.

  3. Brandon

    This plugin was working well, but recently it started listing our convenience fee twice. Deleting and reinstalling didn’t fix the problem. Nothing obvious shows up in the code or database.

    Our support ticket has gone unanswered for five days

    • Algoritmika Ltd.


      In case anyone else has similar issue – as we’ve figured out in private emails, this is some compatibility issue with “Simple Sales Tax” plugin.

      Hope that helps.

      Best regards,

  4. Bogdan

    The plugin functionality is very good, but it slows down our site tremendously.

  5. mcdc.digital (verified owner)

    Works great! I thought the plugin was broken, but realized that I needed to set up BOTH the payment gateway (PayPal) fees AND the general options in order for it to work. Would be lovely if the documentation was updated. Thank you so much for your work!

    V2.3.1 used with WooCommerce V3.2.3 on PHP 7

  6. Jeff

    Hi! the plugins calculates the fee but is not adding it to the checkout.

  7. Marian Kadanka

    Currency switching support via ‘wc_aelia_cs_convert’ filter is inconsistent. Filed a bug report at https://wordpress.org/support/topic/currency-switching-inconsistency/

    • Algoritmika Ltd.


      Fixed in v2.3.0.

      Best regards,

  8. E

    The plugin doesn’t work anymore after the last update.
    Using php7 on the latest wordpress + woocommerce, plugin did work fine before.

    • Algoritmika Ltd.


      Please update to v2.2.2 – this should be fixed now.

      Best regards,

  9. Selim


    Just downloaded and tested. Realy nice interface and looks usefull.

    But one thing that stop us.

    We have 2 different VAT values by our products. some have %18 and some have %8. If we choose for example %18 in the plugin for referenece, the VAT of goods with %8 VAT is calculated form the list price and not from the discounted unit price which is wrong.

    If you correct this please soon, we are ready to purchase.

    Best regards

  10. Kyle

    Most complete payment fees plugin for WooCommerce I’ve found. Thanks guys!

Add a review

Your email address will not be published. Required fields are marked *


= 2.6.4 - 10/11/2020 * Update compatibility with WP 5.5 * Update compatibility with WooCommerce 4.6 * Fix - On backend the gateway fees were accepted only as whole numbers. This is fixed now.

= 2.6.3 - 07/07/2020 * Fix - A compatibility issue with PayPal Checkout Gateway plugin. * Fix - Issue on pay-order endpoint where Order ID were not available. * Dev - Data tracking to improve the plugin and add new features.

= 2.6.2 - 13/03/2020 * This update to the plugin is for announcing the plugin compatibility with WooCommerce v4.0.0

= 2.6.1 - 22/02/2020 * This update to the plugin is for announcing the plugin compatibility with WooCommerce v3.9.x

= 2.6 - 13/01/2020 * Fix - The fees was not being removed from checkout when a payment gateway was unset unsing custom code. * Fix - Compatibility with WooCommerce Country based Payments plugin. * Feature - Added an Ajax call on 'Pay Order' page. The fees will now be added/removed from the 'Pay Order' page as well.

= 2.5.7 - 19/04/2019 * Fix - Fees are not being carried over from the Checkout page to the order. * Fix - Discounts are not being applied to renewal orders for subscription products.

= 2.5.6 - 10/04/2019 * Added compatibility with WooCommerce Subscriptions. * Fixed an issue where license key was not being activated successfully. * The plugin goes into continous loading of the cart at Checkout when precision is left blanks for rounding. Fixed the same. * Added uninstall.php file to ensure the plugin data is deleted when the plugin is uninstalled. * On a fresh install of the plugin, the admin will now be prompted to enter the license key and activate the same.

2.5.4 - 16/10/2018

  • Dev - Current (i.e. chosen) payment gateway function rewritten (fixes the issue with 100% discount coupons on the checkout page - fees were not reapplied when coupon is removed).

2.5.3 - 12/10/2018

  • Fix - Coupons usage with "WooCommerce Gift Certificates" plugin fixed.
  • Fix - Settings hook priority increased, so gateways fees settings are not loaded too early (fixes the issue with "Mollie Payments for WooCommerce" plugin).

2.5.2 - 17/09/2018

  • Dev - Code refactoring.

2.5.1 - 04/08/2018

  • Fix - Product categories - Calculation type - Categories to exclude - Only for selected products - Option fixed.
  • Dev - Admin settings descriptions updated.
  • Dev - "States to include/exclude" options added.

2.5.0 - 04/08/2018

  • Dev - Major code refactoring and clean up. Main plugin file and POT file renamed.
  • Dev - Admin settings restyled and descriptions updated.
  • Dev - "Reset section settings" options added.
  • Dev - Raw input now allowed in all "Info" section templates.

2.4.0 - 30/07/2018

  • Dev - "Merge All Fees" added to "General" section.
  • Dev - "Global Extra Fee" added to "General" section.
  • Dev - Current (i.e. chosen) payment gateway function rewritten (fixes the issue with "zipMoney" payment gateway).
  • Dev - "Customer Countries" options added to both fees separately.
  • Dev - "Europe", "European Union", "Europe excluding EU", "Eurozone", "Africa", "Asia", "Australia and Oceania", "Central America", "North America" and "South America" added as country selection.
  • Dev - Eight more countries added to the list.
  • Dev - "Info" admin settings section added (options moved from "General" section).
  • Dev - Admin settings restyled.
  • Dev - Plugin link updated from https://wpcodefactory.com to https://wpfactory.com.
  • Dev - Code clean up.

2.3.3 - 07/01/2018

  • Dev - Additional check added in Alg_WC_Checkout_Fees_Settings_Gateways (prevents AJAX error on some servers).

2.3.2 - 02/01/2018

  • Dev - WooCommerce 3.2 compatibility - WC_Tax::get_tax_total() replaced with get_cart_contents_taxes() and get_shipping_taxes().
  • Dev - Additional check for WC()->payment_gateways to be set, added in add_gateways_fees().
  • Dev - Additional checks for tax class to exist added (in Core and Info).
  • Dev - Additional checks if product's price is zero added (in Info).
  • Dev - Per products settings JS file updated.
  • Dev - "WC tested up to" added to the plugin header.

2.3.1 - 26/08/2017

  • Dev - Info - %product_price_diff_percent% replaceable value added.
  • Dev - Wrapping div (class alg_checkout_fees) added to meta box settings.
  • Dev - "General" settings restyled.

2.3.0 - 16/08/2017

  • Dev - "Aelia Currency Switcher for WooCommerce" plugin currency conversion filter added to: get_max_ranges(), min_cart_amount, max_cart_amount, min_fee, max_fee, min_fee_2, max_fee_2.
  • Dev - "Coupons Rule" options added.
  • Dev - Code refactoring.
  • Dev - Settings restyled.

2.2.2 - 27/07/2017

  • Fix - Removed additional check if add_gateways_fees() has already been executed (was added in v2.2.1).
  • Dev - "Delete All Plugin Data" option added.
  • Dev - Code cleanup etc.

2.2.1 - 22/07/2017

  • Fix - Per Product - custom_atts for fields (step etc.) fixed.
  • Fix - Additional check if add_gateways_fees() has already been executed added (this prevents fees duplicating on some servers).

2.2.0 - 27/06/2017

  • Dev - WooCommerce 3.x.x compatibility - Deprecated get_price_excluding_tax(), get_price_including_tax(), get_display_price() notices fixed.
  • Dev - WooCommerce 3.x.x compatibility - Deprecated get_formatted_variation_attributes() notice fixed.
  • Dev - WooCommerce 3.x.x compatibility - Deprecated get_country() notice fixed.
  • Dev - "Add Taxes" option added for both global and per product fees.
  • Dev - load_plugin_textdomain() moved from init hook to constructor.
  • Dev - Plugin header updated ("Text Domain" and "Domain Path" added).
  • Dev - Plugin link updated from http://coder.fm to https://wpcodefactory.com.

2.1.1 - 04/10/2016

  • Fix - Bug when local and global fees have same title, fixed.
  • Fix - Categories restrictions wrongly applied to per product fees, fixed.
  • Dev - "Max Range Options" options section added to "General" settings.
  • Dev - "Override Global Fee" (main and additional) option added to per product settings.
  • Dev - "Minimum Fee Value", "Maximum Fee Value", "Minimum Additional Fee Value" and "Maximum Additional Fee Value" options added to both local and global fees.
  • Dev - "Minimum Cart Amount" and "Maximum Cart Amount" options title modified.

2.1.0 - 20/08/2016

  • Fix - Tax bug fixed when "Categories to include - Calculation type" is equal to "Only for selected products".
  • Fix - Tax bug fixed in info.
  • Fix - "Categories to include - Calculation type" with value "Only for selected products" fixed when displaying info.
  • Dev - "Categories to exclude - Calculation type." option added.
  • Dev - "Categories to include (additional fee)." and "Categories to exclude (additional fee)." options added.
  • Dev - Version system added.
  • Dev - Author changed.
  • Dev - Plugin renamed.

2.0.2 - 06/08/2016

  • Fix - sanitize_title() added to add_gateway_fees_settings_hook() and removed from output_sections().
  • Dev - Multisite support added.
  • Dev - "Variable Products Info" option added.
  • Dev - "Categories to include - Calculation type" option added to global fees.
  • Dev - Language (POT) file added.
  • Dev - Author changed.

2.0.1 - 10/03/2016

  • Fix - Additional checks in add_gateway_fees_settings_hook().

2.0.0 - 01/03/2016

  • Fix - Checked tab in admin per product fees is marked now.
  • Fix - Info on Single Product bugs fixed: for variable products; for percent fees.
  • Fix - "General" section in admin settings menu is marked bold by default.
  • Dev - %product_title%, %product_variation_atts% added.
  • Dev - Info on Single Product - [alg_show_checkout_fees_full_info] and [alg_show_checkout_fees_lowest_price_info] shortcodes added.
  • Dev - Info on Single Product - Lowest Price Info on Single Product Page added.
  • Dev - Info on Single Product - %gateway_fee_title% and %gateway_fee_value% removed from info.
  • Dev - "Add Product Title to Fee/Discount Title" option added to "General > Fees/Discounts per Product" settings.
  • Dev - "Hide Gateways Fees and Discounts on Cart Page" option added to "General" settings.
  • Dev - "Exclude Shipping" option added for both global and per product fees.
  • Dev - "Title" option added for optional "Additional fee" (per product and global).
  • Dev - "Customer Countries" (include / exclude) options added to global fees.
  • Dev - "Product Categories" (include / exclude) options added to global fees.
  • Dev - Compatibility with "Aelia Currency Switcher for WooCommerce" plugin added (for fixed fees; for percent fees compatibility was already there).
  • Dev - "Fee Calculation (for Fixed Fees)" options (once / by product quantity) added to per product fees.
  • Dev - "Fee Calculation (for Percent Fees)" options (for all cart / by product) added to per product fees.

1.3.0 - 27/10/2015

  • Dev - Second optional fee added.

1.2.0 - 30/09/2015

  • Dev - Checkout fees/discounts info on single product frontend page added.

1.1.0 - 04/09/2015

  • Dev - Checkout fees/discounts on per product basis added.

1.0.0 - 29/08/2015

  • Initial Release.

Free version

This plugin is a premium version of free "Payment Gateway Based Fees and Discounts for WooCommerce" plugin.

Installation and Updates

  • Buy the plugin 🙂
  • Download plugin's zip to your computer (you will receive an email with download link, or you can always download the plugin from your account).
  • Go to "Admin Dashboard > Plugins > Add New > Upload Plugin" and browse for downloaded zip file.
  • If plugin is successfully installed - you should see it added to the Plugins list.
  • To keep WPFactory items up to date, please install WPFactory Helper plugin and enter your site key.


We want to ensure that you are 100% happy with your purchase, so if you feel the product(s) you purchased are not the best fit for your requirements and you attempted to resolve issues with product's author, we are offering 30 day money back guarantee refund policy.