Tested Updated 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. blank


    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?

    • blank


      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. blank

    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.

    • blank

      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. blank


    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

    • blank

      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. blank


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

  5. blank

    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. blank


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

  7. blank

    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/

    • blank

      Algoritmika Ltd.


      Fixed in v2.3.0.

      Best regards,

  8. blank


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

    • blank

      Algoritmika Ltd.


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

      Best regards,

  9. blank



    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. blank


    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 *

64 thoughts on "Payment Gateway Based Fees and Discounts for WooCommerce"

  1. Hi
    I really did not understand what was meant “Customer states” in PayPal Checkout / Please give me an example, what I need to separate in the comma
    Thanks Benny

    1. Hi Benny, Which field are you referring to in our plugin?

    2. Hi
      This field, Look please the picture link https://1drv.ms/u/s!AlJM7dNlHfVYoLZfroW03sz9jrvXXw?e=HOtJGw
      Thanks Benny

  2. we have a recurring paypal but the fee is not calculated. How gets this working?

    1. Hi,

      I have created a ticket for you on our ticketing system. Can you please check and reply on that ticket?

  3. Hello. I have the pro version of the plugin (latest version). I have configured a convenience fee for the credit card gateway method that EXCLUDES a specific category of products. When I add a product from the excluded category to the cart, the convenience fee is NOT added however if I add a second product from another category (that is not excluded), there is still no convenience fee. It seems that the presence of a product from an excluded category removes the convenience fee altogether even if there are other products that should be subjected to it. The correct functionality should be that a convenience fee is added to qualifying products even if there are excluded products in the cart.

    1. Hi,

      I have created a ticket for you on our ticketing system. Can you please check and reply on that ticket?

  4. I am using the PRO version of the Payment Gateway Based Fees and Discounts for WooCommerce version 2.5.5
    I believe the key I entered is correct though it doesn’t say so in settings.

    I have enable the setting “Payment gateways fees and discounts on per product basis” from the plugin’s settings under WooCommerce -> Settings -> Payment Gateway Based Fees and Discounts page: https://screencast.com/t/SciyFw5kkM .

    When I select a product, I CAN see the per product settings to enable or disable certain payment gateway. BUT, those selections ( enabled/disabled ) or overwrite the amount do NOT get reflected in the cart. Can you please help ?

    1. Hi,

      I have created a ticket for you on our ticketing system. Can you please check and reply on that ticket?

  5. Hi Team

    After i were install plugin , there was no metatab to set per product discount per gateway like the picture you show,
    “Checkout Fees And Discounts” metabox, and select gateway tab

    1. Hi Akanis,

      You will need to enable the setting “Payment gateways fees and discounts on per product basis” from the plugin’s settings under WooCommerce -> Settings -> Payment Gateway Based Fees and Discounts page: https://screencast.com/t/SciyFw5kkM .


  6. Hi boys and girls,

    we have the following problem on our site:

    Fatal error: Uncaught Error: Call to undefined function is_checkout() in /homepages/25/d310946291/htdocs/bandoleo/wp-content/plugins/checkout-fees-for-woocommerce-pro/includes/class-wc-checkout-fees.php:169 Stack trace: #0 /homepages/25/d310946291/htdocs/bandoleo/wp-includes/class-wp-hook.php(286): Alg_WC_Checkout_Fees->enqueue_checkout_script(”) #1 /homepages/25/d310946291/htdocs/bandoleo/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array) #2 /homepages/25/d310946291/htdocs/bandoleo/wp-includes/plugin.php(453): WP_Hook->do_action(Array) #3 /homepages/25/d310946291/htdocs/bandoleo/wp-includes/script-loader.php(1447): do_action(‘wp_enqueue_scri…’) #4 /homepages/25/d310946291/htdocs/bandoleo/wp-includes/class-wp-hook.php(286): wp_enqueue_scripts(”) #5 /homepages/25/d310946291/htdocs/bandoleo/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array) #6 /homepages/25/d310946291/htdocs/bandoleo/wp-includes/plugin.php(453): WP_Hook->do_action(Array) #7 /homepages/25/d310946291/htdocs/bandol in /homepages/25/d310946291/htdocs/bandoleo/wp-content/plugins/checkout-fees-for-woocommerce-pro/includes/class-wc-checkout-fees.php on line 169

    We installed the latest version of the plugin. Thanks for your help

    1. Hi,

      Thank you for sharing the error and letting us know that you are using the latest version of the plugin.

      I have tried to replicate the issue on our staging site with the latest version 2.5.4. But I am unable to replicate the issue as the checkout page is working fine nor any errors are recorded in the debug.log file.

      Can you please let me know whether you have tried by switching the currently active theme to the default WordPress theme or the StoreFront theme?

      If no, then can you please try and let us know whether the mentioned issue is fixed.

      If the issue still persists then try by deactivating all the plugins except WooCommerce and the Payment Gateway Based Fees and Discounts for WooCommerce plugin and let me know the result.

      Yet the issue persists then please send us the admin details of your site at support at tychesoftwares dot freshdesk dot com. We shall check the issue and get back to you with an update.

  7. Hi, urgent help required please!

    I’ve enabled fees for both paypal express checkout and paypal rest card payments. The fees calculate perfectly in the checkout page, however when the customer clicks through to buy, they are removed when they get to paypal.

    Why are the fees being blocked/removed by paypal?


  8. Salve, dopo aver aggiornato la versione del plugin , le spese nel checkout compaiono due volte, quindi ad esempio chi sceglie il pagamento “contanti alla consegna” paga 2 volte il costo di 5€, come posso fare a risolvere???.. ho anche disinstallato e reinstallato, ma il problema non si è risolto…

    1. Hi,

      Maybe you can create/share an admin account to your server (WP and preferably FTP), so I could login and check what’s going on? My email is [email protected]

  9. Hi,
    I like this plugin, it’s very useful and helps with all of our transaction fees. I have an issue though. I also have a deposits plugin that allows a user to pay only 20% deposit to a product. The problem is that when the user is checking out and select to pay “Deposit Only” the surchasrge percentage is calculated at the full price of the product, not the deposit amount. For example if I have a product that is 500.00 dollars, and the deposit amount is 100.00 Dollars, and the Credit card or Paypal charge is set at 5%, the user will be charged 25,00 dollars, instead of being charge only 5,00 dollars during checkout (when the user selects to only pay deposit)

    How to resolve this issue? Can you incorporate a fix in the next release?….

    1. Hi,

      Maybe I could login to your site (WP and preferably also FTP) and check it? If yes – my email is [email protected].

      Best regards,

  10. Hello,

    I’m building a new website and am interested in your plugin to charge a fee for using a credit card over a $ threshold, I was wondering, what is the difference between the Free and Premium versions? The descriptions for both seem to be nearly similar.

    Thank you!

    1. Hi Mike,

      We’ve just added Free vs Pro section to the description. Should have added it earlier – sorry for that. So basically it’s:

      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)

      Hope that helps.

  11. URGENT:

    Although I have used the plug-in in the past with no problems at all, it doesn’t seem to work properly after I updated some of the other plug-ins I work with. I checked and re-checked all of the settings multiple times, but the payment gateway fees just don’t show up at checkout. Product prices remain unchanged when switching payment methods.

    I am running out of ideas as to why things suddenly stopped working (I didn’t change any of the settings before and after the update).

    Could you please help me out? Thanks!

    Best regards.

  12. HI Tom, thanks no i am not using one of the plugins , but for unknown reason it is working now. Which is good.
    However what i have noticed now is that e.g. it does not seem to work that card fees are applied to products if a product without card fees is in the cart. e.g.
    I have a product (membership) which is excluded from the cardfee (memberships) – (membership is in a category excluded from the cardfee calculation.- ok (no fee applied) .
    Other products the card fee is applied (ok) – But if a membership is in the card together with other products => no card fee is applied for all – I would expect that the card fee of those products is applied which are not excluded. Appreciate your feedback.

    1. Hi,

      I’ve replied personally, but in case if anyone else has similar question, I’m posting same here:

      I think what you need to do is go to your fee’s settings (e.g. “WooCommerce > Settings > Payment Gateway Based Fees and Discounts > Direct bank transfer”) and there (at the bottom of the settings page) there is “Product Categories – Calculation type options” – please try changing that from “For all cart” to “Only for selected products”.

      Hope that helps.

      Best regards,

  13. HI i have added a credit card fee, but now i am always getting 2 lines displayed (credit card fee and credit card fee#2) in the checkout – although only one fee is configured (additional fee(optional) is empty. Giving the optional fee the same name is also not merging the lines as indicated in the help ? note. Please advise.

    Also is it possible to setup a fixed minimum e.g. 0.30 and an additional % value e.g. 1.5 % on top ? combined in one line ?
    please advise

    1. Hi,

      Maybe it’s possible to create/share an admin account, so I could login to your server and check what’s going on? If yes – my email is [email protected]. Also FTP access would help.

      As for mixed minimum – unfortunately “Minimum Fee Value” option only accepts fixed values (but not percent). I’ll have to re-check if this can be added – will try to add it in next plugin version.

      Best regards,

    2. P.S. We had a similar issue and the problem was in a compatibility issue with one of these plugins: “Simple Sales Tax”, “WooCommerce Services” or “Taxjar”. Could you please let me know if you have any of these plugins installed on your server?

      Best regards,

  14. Hi, can i have a fee based on the number of the instalments? I have a payment method Alpha bank in which I want to charge a fee based on the number of the instalments.

    Is it possible?

  15. Hi,
    I installed your Payment Gateway Based Fees and Discounts for WooCommerce plugin, and I want to buy it, but I have one issue. Instead of displaying a distinct fee, I need that the prices displayed for each product is updated (cart, order), according to the percentage associated to the payment method. I would like to display a third price in the product detail page in order to show the price depending on the payement method.

  16. Hi!

    I can’t use Cash on Delivery payment gateway if I enable this plugin. I dont know why but the option to pay Cash on Delivery will be hidden if If enable this plugin. The other payment options are there but the COD not an option, I set up everything correctly and works on other website, but not here on ny new site. All updated, Woo and WP and Plugin. I use othe plugins for Woo, can it be plugin conflict? If i turn of this plugin the COD payment option is there. Do I have to purchase the pro to get this option to work or what is the problem? Thanks a lot!

    1. Okay, I solved the problem somehow! Thanks.

  17. I want to enable a payment (cash on delivery) only in our country. Is it possible with this plugin?

    Notice I can see a section saying “Customer Countries – Countries to include. Get Payment Gateway Based Fees and Discounts for WooCommerce plugin page to change value”

    However, the help of that section says that that section is to disable the fee or discounts.

  18. Hi, I can’t translate the Fee title using WPML. After save Payment gateway few times, it still not show up on WPML string translation.


    1. I would also like to know hot to translate Fee Title if I use WPML?

  19. hello, i’ve bought the pro version of “Payment Gateway Based Fees and Discounts for WooCommerce”, in particular the lifetime license for unlimited sites. i downloaded the .zip file and, following the instructions, i’ve installed it via FTP. Now the name that appears in my dashboard is “Payment Gateway Based Fees and Discounts for WooCommerce Pro”, but the pro features still don’t work. What can i do?
    thank you very much

  20. Dear Algoritmica

    We bought and installed your premium plugin ‘Payment Gateway Based Fees and Discounts for WooCommerce”
    in order to add transaction costs in case of certain payment methods (e.g. MasterCard and Maestro).

    However, when someone *first* selects to pay by Card (= extra cost) and *then swaps* to Direct Bank Transfer (free), the extra costs do not disappear.

    How can we solve this?


  21. Hi there, I’ve installed Ver. 2.3.3 and would like to use it for a cash discount of 2%. I ticked the “Add Taxes” checkbox (Add taxes to total cart sum, when calculating fees. ). Here in Germany it is common use to deduct cash discount from the total sum (incl. taxes).
    I made a test purchasing on my dev site. Total was EUR 33,50 (incl. taxes). 2% cash discount is 67ct, which was calculated correctly by the plugin. But for some weird reason the total is not 33,50 – 0,67 = 32,83. It is 32,74! Please see the enclosed screenshot and see for yourself. I have no idea what’s going wrong here.
    Thanks for your support, Rado

  22. I am very interested to buy this plugin however I need one function which is to enable/disable based on user role. If that feature is available then it will be a complete plugin for me.

  23. We want to create a coupon that allows some customers to bypass the fee we have set (3% when using credit card). However, since the coupons take effect before the fees, it never matches up to the right amount (the 3% in your plugin is adding 3% to the post-coupon amount). What’s the best way to bypass the fee for some customers that we select?

    1. Hi there,
      if x was your gross total and y was the discount from the coupon you are looking for:
      (x-x*y)*1.03 = x -> gross total less discount plus 3% fee should be gross total again
      -> y = 0.03/1.03 = 0.0291262 -> your discount should be 2.91262%

  24. how can I add separate charges for
    stripe European cards and non-European cards

    1.4% + 20p
    for European cards.
    2.9% + 20p
    for non-European cards.

  25. My fees are being added in twice. Is there any way to fix this?

  26. PHP Fatal Error:
    PluginVersion 2.3.2, PHP 7.0

    [03-Jan-2018 21:05:07 UTC] PHP Fatal error: Uncaught Error: Call to a member function get_available_payment_gateways() on null in /var/www/vhosts/xxx/httpdocs/wp-content/plugins/checkout-fees-for-woocommerce/includes/class-wc-checkout-fees.php:167
    Stack trace:
    #0 /var/www/vhosts/xxx/httpdocs/wp-includes/class-wp-hook.php(286): Alg_WC_Checkout_Fees->add_gateways_fees(Object(WC_Cart))
    #1 /var/www/vhosts/xxx/httpdocs/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(”, Array)
    #2 /var/www/vhosts/xxx/httpdocs/wp-includes/plugin.php(453): WP_Hook->do_action(Array)
    #3 /var/www/vhosts/xxx/httpdocs/wp-content/plugins/woocommerce/includes/class-wc-cart.php(1711): do_action(‘woocommerce_car…’, Object(WC_Cart))
    #4 /var/www/vhosts/xxx/httpdocs/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php(277): WC_Cart->calculate_fees()
    #5 /var/www/vhosts/xxx/httpdocs/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php(777): WC_Cart_Totals->get_fees_from_c in /var/www/vhosts/xxx/httpdocs/wp-content/plugins/checkout-fees-for-woocommerce/includes/class-wc-checkout-fees.php on line 167

    1. Hi Christian,

      Could you please update plugin to v2.3.3 and let me know if this is fixed.

      Best regards,

    2. Thanxx, now it works fine!

  27. The plug-in looks to be crashing my site following my upgrade to WP 4.9.1 and Paypal for WooCommerce 1.4.7

    1. Hi,

      We’ve just released new v2.3.2 – could you please update and let me know if the issue is still there?

      Best regards,

    2. Thanks, Tom,

      All working, thank you very much for your assistance



    1. Hi,

      Do you mean that “PayPal 0,35 EUR” fee shouldn’t be added twice? If that’s correct – could you please let me know if you are using “global” fees (i.e. for all products), or fees on “per product” basis, or both?

      Best regards,

  28. I’d like to set one payment gateway to a 100% discount, resulting in a zero value subtotal. However, when I do this the other gateways and radio buttons disappear and force the customer to checkout with the currently selected gateway. With multiple gateway options on my site, I want my customers to have the option to click through each one to review them before placing the order. This only happens when I set the discount level to 100%.

  29. Hi

    I noticed that in the plugin description it states that it can be used with PayPal.
    However, I am not sure if it would be inline with PayPal User Agreement where they state that there should be No surcharge.

    PayPal states:
    You agree that you will not impose a surcharge or any other fee for accepting PayPal as a payment method. You may charge a handling fee in connection with the sale of goods or services as long as the handling fee does not operate as a surcharge and is not higher than the handling fee you charge for non-PayPal transactions.

    Here it is: https://www.paypal.com/webapps/mpp/ua/useragreement-full?country.x=US&locale.x=en_US#4

    Please advice me.


  30. Hello, the free version works great but the fees that i created for Cash on delivery in the summary orders of Woocommerce is added to the net amount of the products sold and i need it to be addeded to the delivery costs. How can i solve?

    1. There is someone in this support forum?????

  31. There is a bug in the plugin. I have configured plugin to add a percentage of fees for a specific payment gateway. Suppose the payment is declined by the user from the Payment Gateway page, it will redirect to woo commerce site telling order received. If the user go to My Orders, he can see the failed order. If he click on Pay button, it shows the checkout page, but this time the fees are not added to any of the gateway as configured before.

  32. I have installed the Free version and noticed when manually raising an invoice, this plugin does not add the fee depending on the payment gateway choice.

    Is there a fix for this as customers will pay using the wrong gateway leaving us in cashflow issues.



  33. Hi ,

    Great plug in

    I am using WooCommerce subscriptions. I charge a credit card / fee. When the bill is processed it shows 2 credit card fees on the invoice.

    Creditcard surcharge 3%: $0.06
    Credicard surcharge 3% #2: $0.05

    The plug correctly only charges once, but the fee is shown twice?

  34. Hi,

    Anyone know if this plugin works with PayPal Express?

    I enable the option, but it does not work.

    Can anybody help me ?

  35. If i have product on sale (with a discounted price) do this apply the discount again over them? or is a way to bypass already on sale products (do it do not apply double discount).


  36. it work if normal transaction , for me just add on 3.2% but if the item have discount it still charge the gateway fee. how to do it. let say the client purchase a ticket at rm100 and add coupun value rm100 = rm0.00 but the plugin on checkout return , client have to pay rm3.20

    have a look at demo site. techchefs.biz/ticket
    need help

  37. Hi Need Help on setting up.
    In my country the gateway charger per transaction is 3% and ontop of that the GST6% on fee charges ( based price x 3% > 6%x fee charges > based priced minus (fee + gst) = total received

    How shoud i setup

    1. any answer to this question?

    2. Hi,

      I’m not completely sure I understood you correctly, but I think what you need is to set fee “Type” to “Percent” and “Value” to “3”. And at the bottom of the fee settings page, you can find “Taxes” options. There you need to enable the checkbox and set “Tax Class” to 6% tax class. Tax class needs to be created before that (you can do it in WooCommerce > Settings > Tax).

      Again, I’m not sure, but maybe alternatively you can just set fee value to 3.18% instead if 3% (and do NOT check the “Taxes” checkbox). That is: 3 + (3 x 0.06) = 3.18% But I think the first solution is more “correct”.

      Please let me know if that helped.

      Best regards,

  38. When having a discount that reduces the cart price to zero, it isn’t possible anymore to checkout

  39. Hello,

    I have a problem with an error message: Transaction refused because of an invalid argument.

    2017-08-01T16:50:19+00:00 INFO SetExpressCheckout Response: Array
    [TIMESTAMP] => 2017-08-01T14:50:19Z
    [CORRELATIONID] => 3e13aed9c500b
    [ACK] => Failure
    [VERSION] => 124.0
    [BUILD] => 000000
    [L_ERRORCODE0] => 10431
    [L_SHORTMESSAGE0] => Transaction refused because of an invalid argument. See additional error messages for details.
    [L_LONGMESSAGE0] => Item amount is invalid.
    [L_SEVERITYCODE0] => Error

    I enabled Austria, Germany and Switzerland in the shop. The plugin is configured to change the price from 29€ to 25€ if somebody is from Switzerland and will pay by PayPal. Works great but I can’t finish checkout procedure. I use the latest WooCommerce, WordPress and Plugin Version.

    thx for help

Leave a Reply

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.