by Kavio Labs · for WooCommerce 10.1+ on WordPress 6.7+
Fees, surcharges or discounts per payment method for WooCommerce: COD fee, card surcharge, bank transfer discount. Fixed or percent with caps, conditions (goods total, country, shipping method, role, categories), tax class, live in the Checkout block and the classic checkout, locked on the order, refund cap, and an EU / UK / AU surcharge law guard. HPOS.
Tested on WooCommerce 11.2.1 & WordPress 7.1.3Updated Nov 20, 2026Version 1.0.0Compatible with WooCommerce 10.1 – 11.2, WordPress 6.7+ No core file edits
Built forWooCommerce
Payment Fee & Surcharge Rules for WooCommerce: a fee or a discount for every payment method.1 of 9
What it does
Fees, surcharges or discounts per payment method for WooCommerce: COD fee, card surcharge, bank transfer discount. Fixed or percent with caps, conditions (goods total, country, shipping method, role, categories), tax class, live in the Checkout block and the classic checkout, locked on the order, refund cap, and an EU / UK / AU surcharge law guard. HPOS.
A fee or a discount for every payment method. Charge for cash on delivery, add a surcharge to a costly payment method, or reward customers who pay by bank transfer. Payment Fee & Surcharge Rules for WooCommerce adds the right line to the order the moment a payment method is chosen.
What you get
Download & installThe plugin .zip, installed in Plugins > Add New Plugin > Upload Plugin. Download it from My licenses right after payment.
12 months of updates & supportNew versions and help for 12 months (24 or 36 months at checkout). After that the plugin keeps working; renew anytime at 50%.
License for your storeOne production domain with all its subdomains; staging and local development hosts are free. How licensing works
30-day refundFull refund within 30 days of your first purchase, no reason needed. Refund policy
Tested buildsWooCommerce 10.1 – 11.2, WordPress 6.7+. Tested on WooCommerce 11.2.1 and WordPress 7.1.3.
Documentation & supportFull guide (Installation, Configuration, Usage, Developer notes) on this page. Tickets from your account, same-day reply on weekdays (Mon-Fri 09:00-18:00 UTC+3).
Compatibility
Payment Fee & Surcharge Rules works with WooCommerce 10.1 – 11.2, WordPress 6.7+.
We list the builds we install and test on. “Tested” means the test plan ran on that build; “Supported” means the build is inside the supported range.
Compatibility
Version
Range
Runs on
Status
WooCommerce 11
11.0 – 11.2
WordPress 6.7 – 7.1
Tested on 11.2.1
WooCommerce 10
10.1 – 10.x
WordPress 6.7+
Supported
WordPress
6.7 – 7.1
PHP 7.4 – 8.3
Tested on 7.1.3
1.0.0
Nov 20, 2026
Latest
First release: fee, surcharge or discount rules per payment method (fixed, percentage, percentage + fixed; minimum / maximum; base goods after / before coupons or goods + shipping), conditions (goods total, countries include / exclude, shipping methods per zone or any zone, user roles incl. guests, consumer / business, product categories with exclusions, free orders, priority and stop), tax class per rule and amounts with or without tax, Checkout block (Store API update callback, newest choice wins, 409 when the shown fee differs) and classic checkout (update_checkout on a method change, hints, check at place order), WC_Order_Item_Fee lines with tax class and lock, pay-for-order page and admin order action for unpaid orders, refund cap per fee line, legal guard (EU / EEA PSD2 incl. B2B cost cap, UK, Australia 2026, PSR note), preview, report, HPOS and legacy storage.
How do I install the plugin?
Upload the plugin. Plugins > Add New Plugin > Upload Plugin: choose the .zip from My licenses and click Install Now.
Activate. Activate it on the Plugins screen. WooCommerce must be active; the plugin tells you if it is not.
Enter the license key. WooCommerce > Settings, the plugin's own tab: paste the key from My licenses. You have 14 days to do it; staging and local sites are included.
WooCommerce 10.1 – 11.2, WordPress 6.7+. Tested on WooCommerce 11.2.1 and WordPress 7.1.3. The Compatibility tab lists every version range.
Do the plugins work with HPOS and the block checkout?
Yes. Every plugin declares compatibility with High-Performance Order Storage and the Cart and Checkout blocks, and is tested in both the block and the classic cart and checkout.
Will they work with my theme?
They use WooCommerce hooks, blocks and the Store API instead of template overrides, so block themes and classic themes both work. We test on Twenty Twenty-Five.
What does the license cover?
One production store domain with every subdomain (www, shop., staging.), plus local development hosts such as localhost, *.local and *.test. A store on another domain needs its own license; a second-store license is 40% off. You have 14 days after installing to enter the key. 12 months of updates and support are included; after that the plugin keeps working and renewals are 50% off. How licensing works
Can I get a refund?
Yes. Ask for a full refund within 30 days of your first purchase, no reason needed: open a ticket or write to [email protected] with your order number. The money goes back to the card or bank account you paid with within 5 business days of approval. Refund policy
How do I get help?
Open a ticket from your account, so your license details are attached. We answer with a same-day reply on weekdays (Mon-Fri 09:00-18:00 UTC+3). Support policy. Not a customer yet? Ask a pre-sales question.
Add a fee, a surcharge or a discount to the order depending on the payment method: a cash on delivery fee, a card surcharge, a discount for paying by bank transfer. The fee follows the method the customer selects, is stored on the order as a normal WooCommerce fee line with its tax, and a built-in legal guard removes or caps fees where EU / EEA, UK or Australian rules forbid them.
Cash on delivery fee in the Checkout block
What it does
Amounts: fixed, percentage, or percentage + fixed; minimum and maximum caps; negative amounts give a discount. Percentage of the goods (after or before coupons) or of the goods plus shipping.
Conditions: goods total range, countries (only these / all except these), shipping methods (a method in any zone or one zone's method), user roles incl. guests, consumers or business customers, product categories (only these count / excluded categories), free orders, priority and "stop".
Tax: a tax class per rule (standard, any tax class, not taxable, same as shipping); amounts entered with or without tax.
Both checkouts: the Checkout block updates the fee row as soon as a payment method is selected; the classic checkout refreshes the order review. When the order is placed, the server calculates the fee for the method that is paid and refuses the order if the customer saw another fee.
Everywhere WooCommerce shows fees: cart, checkout, order received page, My Account, e-mails, the order screen, invoices and the REST API, with the rule's label ("Cash on delivery fee", "Prepayment discount").
Locked once placed. The pay-for-order page and an admin order action recalculate the fee only for unpaid orders that are paid with another method.
Refunds through WooCommerce's refund form; a refund above the open fee amount is refused.
Surcharge law guard with the official sources: EU / EEA (PSD2), United Kingdom, Australia (October 2026 card, American Express and PayPal rules). Discounts are never limited.
Hints, preview, report: "+$4.90" next to each payment method (classic checkout, pay-for-order page), a preview for any goods total and country, and a report of fees charged, discounts given and fees refunded.
Requirements
WordPress
6.7 or later (tested on 7.1.3)
WooCommerce
10.1 or later (tested on 10.1.4 and 11.2.1)
PHP
7.4 or later (tested on 8.1 and 8.3)
Order storage
HPOS and legacy posts storage (compatibility declared)
Checkout
Checkout block and classic shortcode checkout, pay-for-order page
Pages
Installation
In WordPress go to Plugins > Add New > Upload Plugin, choose kv-payment-fee-rules-kv.zip (CodeCanyon: kv-payment-fee-rules-envato.zip) and click Install Now, then Activate. WooCommerce 10.1 or later must be active.
Open WooCommerce > Payment fees and add your first rule (see Configuration).
Open the Payment methods & law tab and enter what each payment method costs you per payment. Where the law caps a fee at your cost, the fee is never higher than this.
Check WooCommerce > Settings > Payment Fee & Surcharge Rules (amounts with or without tax, the countries of the legal guard, business customers).
Own-site build: enter your licence key on the same settings tab. Without a key the plugin runs for a 14-day start period; after that no new fees are added to carts until a key is entered (rules, settings and placed orders are kept).
Update
Upload the new zip the same way and confirm Replace current with uploaded. Rules and settings are kept.
Uninstall
Deactivating stops adding fees; placed orders keep their fee lines. Deleting the plugin keeps the rules and settings unless Remove data on uninstall is switched on (settings tab). Orders and their fee lines are never changed.
Configuration
Rules (WooCommerce > Payment fees > Rules)
Rules list
Each rule adds one fee line when all its conditions match. Rules run by priority (lower first, then by id); a rule with Stop ends the list when it applies.
Field
Meaning
Name
Admin name only.
Label
What the customer sees in the cart, checkout, order and e-mails. {method} is replaced with the payment method title. Empty: "{method} fee" (or "{method} discount" for a negative amount).
Payment methods
The gateways the rule applies to (empty = all).
Amount type
Fixed amount, Percentage, or Percentage + fixed amount. A negative amount or percentage gives a discount.
Percentage of
The goods after coupons, the goods before coupons, or the goods plus shipping.
Minimum / maximum
Caps on the size of the fee or discount (a -3 % discount with maximum 30 is never more than 30 off).
Tax class
Standard rate, any of your tax classes, Not taxable, or Same as shipping (WooCommerce's shipping tax class; "based on cart items" uses the goods' class when they all share one, else standard). Discounts are always taxed like the goods: WooCommerce splits the tax of a negative fee over the cart.
Goods total
From / to, after coupons; with or without tax like the amounts (settings).
Countries
Only these, or all except these. The billing country by default (settings: shipping country).
Shipping methods
"Flat rate (any zone)" matches every flat rate; "Zone: Flat rate" matches only that zone's method.
User roles
Any of the roles; "Guest" = not logged in. Next to it: consumers only / business customers only.
Product categories
Only products in these categories count for the percentage and the goods total; the rule is off when the cart has none.
Excluded categories
When the cart has such a product: no fee for the whole cart, or leave those products out of the percentage.
Free orders
Off by default: no fee when the order total before the fee is zero (100 % coupon, free product). Switch on to charge anyway.
Rule editor
The Preview under the rules list shows what a cart with a given goods total pays with each payment method, for a country and customer type, including the legal guard.
Payment methods & law
Payment methods
Kind: what a payment method is (card, card wallet, e-wallet, buy now pay later, bank transfer, direct debit, cash on delivery, invoice, cheque, crypto, other). Detected from the gateway; change it when the guess is wrong. WooCommerce's "Direct bank transfer" (bacs) is a bank transfer.
Your cost per payment: flat + percent. Used where the law says a fee may not exceed your cost.
Built-in surcharge rules
Checked on 20 November 2026. The strictest matching rule wins: no fee > fee not above your cost > note. Discounts are never limited. The rules look at your shop country and (setting) the customer's billing country.
Payment Services Regulation (PSR). The new EU regulation extends the surcharge ban to credit transfers and direct debits in every EU currency. On 20 November 2026 the Council had adopted its first-reading position (October 2026); the Parliament's second reading and the publication in the Official Journal were still open, and the rules apply only some time after entry into force. Until then PSD2 Art. 62(4) applies (euro SEPA payments), and the plugin shows a note for non-euro transfers. An update will switch the rule on when the regulation applies.
Things the guard cannot know. Business customers are assumed to pay with a business (commercial) card, which the consumer card bans do not cover; a business customer paying with a personal card may still not be charged. The guard does not see which card brand a shopper uses inside one gateway: set the kind of a mixed card gateway to "Card". It is a configuration aid with the official sources, not legal advice; you stay responsible for the law that applies to your shop.
Whether fixed amounts, caps and goods total limits include tax. WooCommerce stores fees without tax; an amount with tax is converted with the rate of the fee's tax class for the customer.
Country of the rules
Billing country
Which address the country condition looks at.
Show fees next to payment methods
On
"+$4.90" next to each method in the classic checkout and on the pay-for-order page.
Apply the rules of
EU / EEA, United Kingdom, Australia
The groups of built-in rules.
Countries checked
Shop country + customer's billing country
Off: shop country only.
Business customers
Billing company = business
Also: business user roles (comma separated, for example wholesale_customer).
Remove data on uninstall
Off
Delete rules, payment method settings and settings when the plugin is deleted.
Usage
At checkout
Checkout block. When the customer selects a payment method, the plugin sends it to the server (Store API cart update) and the order summary shows the new fee row and total at once. Only one request runs at a time and the newest choice always wins, so fast clicking never leaves the fee of an older choice.
Prepayment discount in the Checkout block
Classic checkout. Selecting a payment method refreshes the order review (WooCommerce's update_checkout). Each method shows its fee next to its name.
Classic checkout
Placing the order. The server always calculates the fee for the payment method that is actually paid, even when two browser requests overlapped. If the customer saw a different fee, the order is not placed: the checkout shows "The payment fee for ... has changed. Please check the order total and place the order again." with the correct total (Checkout block: HTTP 409 with the current cart; classic checkout: an error notice and a refreshed review).
On the order
The fee is a WooCommerce fee line with its tax class. It appears on the order received page, in My Account, in the order e-mails, on the order screen and in the REST API.
Order received
Locked. Editing a rule later never changes placed orders. WooCommerce's Recalculate button keeps the fee amount (it recalculates its tax from its tax class).
Pay-for-order page. A pending or failed order can be paid with another method. The page shows the fee of each method; choosing a method shows "With Cash on delivery the payment fee is $4.90 and the order total becomes $94.90." Before the payment the order's fee lines are replaced for the chosen method and an order note records the change. Without JavaScript, the first attempt only updates the total and asks the customer to check it and pay again. Paying with the method the order was placed with changes nothing. Express payment buttons on this page (Store API) follow the same rule: with another method the fee lines are replaced, and when the total changes the first attempt stops with the same message, so the customer pays the new total on the next attempt.
Pay-for-order page
Admin order action. For unpaid orders (also orders you create in the admin) the order action Update payment fee for the payment method recalculates the fee for the order's payment method. Running it twice never adds a second line.
Refunding the fee
Use WooCommerce's Refund button on the order: the fee line has its own refund amount and tax fields. A refund above the fee amount still open (or with the wrong sign) is refused with "The refund of ... is more than its open amount".
Refund form with the fee line
Report
WooCommerce > Payment fees > Report lists, per payment method, the orders of the last 90 days with a fee or discount, the fees charged, the discounts given and the fees refunded (net, without tax), and the latest orders.
Report
Developer notes
Fees: added on woocommerce_cart_calculate_fees (priority 20) through WC()->cart->fees_api()->add_fee() with the id kv-pfr-<rule id> (WooCommerce clears fees before each calculation, so recalculations never double a fee). The fee object carries kv_pfr (rule id, method, guard codes).
Order data: fee lines are WC_Order_Item_Fee with hidden meta _kv_pfr_rule, _kv_pfr_method, _kv_pfr_codes; the order meta _kv_pfr_method is the gateway the fee was calculated for. Orders only through CRUD (HPOS and legacy storage).
Chosen method: the session's chosen_payment_method; without one (or when it is not available) the first available gateway.
Store API: cart extension kv-payment-fee-rules (enabled, method, fee = net fee in minor units, hints = fee per available gateway); update callback namespace kv-payment-fee-rules (data.method); checkout request field extensions["kv-payment-fee-rules"] (method, fee the block showed). On the checkout POST the request's payment_method is put into the session on woocommerce_store_api_checkout_update_customer_from_request (before WooCommerce calculates the cart); woocommerce_store_api_checkout_update_order_from_request answers HTTP 409 kv_pfr_fee_changed (with the cart) when the shown method / fee differ.
Classic checkout: hidden fields kv_pfr_method, kv_pfr_fee in the order review; checked on woocommerce_after_checkout_validation.
Order-pay route (POST /wc/store/v1/checkout/{order_id}, express buttons on the pay-for-order page): on woocommerce_store_api_checkout_update_order_from_request the fee of the existing order follows the paid gateway (the order lock _kv_pfr_method, or the placed gateway); same gateway = no change; another gateway = fee lines replaced (order note) and HTTP 409 kv_pfr_fee_changed when the order total changed.
Refund check: woocommerce_create_refund (an exception makes wc_create_refund() return a WP_Error).
Order action: kv_pfr_update_fee.
Options: kv_pfr_settings, kv_pfr_rules, kv_pfr_methods, kv_pfr_db_version (no custom tables).
Filters: kv_pfr_rules (rules evaluated for a context), kv_pfr_is_business (bool, company, roles), kv_pfr_today (date of the legal guard, Y-m-d).
WooCommerce 10.x note: Store API orders built before 11.x leave a negative taxable fee untaxed (core reads the order items from the database while the draft order is built); the plugin recalculates the tax of its discount lines after the draft is saved.
FAQ
Can I charge a card surcharge in the EU?
Not to consumers paying with a consumer debit or credit card (PSD2 Art. 62(4)); the guard removes such fees. A business customer paying with a business card may be charged, but never more than the card costs you (PSD2 Art. 62(3)); enter the cost under Payment methods & law. A business customer paying with a personal card may not be charged.
Can I charge a cash on delivery fee in Germany?
Yes, but not more than what cash on delivery costs you (Consumer Rights Directive Art. 19, PSD2 Art. 62(3)). Enter the courier's COD charge as your cost; the fee is capped at it.
Is a discount for bank transfer allowed?
Yes. Discounts (negative amounts) are never limited by the guard. They never go below the goods they are given on.
Why is there no fee on my free order?
Rules do not charge when the order total before the fee is zero (WooCommerce would not ask for a payment method). Switch on "Also charge when the order is free" in the rule to charge anyway.
Does the fee change on placed orders when I edit a rule?
No. Only the pay-for-order page (another method) and the admin order action change the fee, and only for unpaid orders.
The Checkout block shows "The payment fee ... has changed". The fee calculated for the payment method that is paid was not the one shown (for example after a very fast change of the method). The checkout now shows the right total; place the order again.
Do express payment buttons (Apple Pay / Google Pay sheets) show the fee?
The fee is calculated for the express method's gateway when the order is placed. If the wallet sheet showed another total, the order is refused with the message above and the checkout shows the right total. On the pay-for-order page an express payment with another method replaces the order's fee lines; if the total changes, the first attempt stops and the customer pays the new total on the next attempt.
Is the fee taxed?
With the rule's tax class. Discounts are taxed like the goods (WooCommerce splits their tax over the cart). With "Amounts entered: including tax" an amount of 5.95 with 19 % tax becomes 5.00 + 0.95.
Does it work with HPOS, the Checkout block and block themes?
Yes; compatibility with High-Performance Order Storage and the Cart and Checkout blocks is declared and tested (WooCommerce 11.2.1 and 10.1.4, HPOS and legacy storage).
Is this legal advice?
No. The guard is a configuration aid with the official sources. Rules change (the EU Payment Services Regulation is coming); you stay responsible for the law that applies to your shop.
The department store block theme for WooCommerce: colour-coded departments, a department list beside the hero slider with two side promos, a big search with a department picker, tabbed product grids, a 2 + 1 + 2 offer grid, deals of the day with real countdowns, a department showcase, a promotions band and a three-column product page with a sticky buy box. Four styles (Meridian, Harbor, Citrus, Night) as Site Editor style variations, every colour editable. Cart and Checkout blocks styled, HPOS neutral.
Stop AI crawlers, scrapers, card testers, vulnerability scanners and unwanted countries before WordPress builds a page. Googlebot and Bingbot are verified by DNS and always allowed; 50+ bots get one switch each; country rules use free GeoIP databases and can close only the checkout (block and classic checkout, wc-ajax and Store API); card testing protection on order submissions; the add to cart flood fix for requests without a WooCommerce session; IP and network lists, rate limits for search, filters, forms and login, honeypots; a one-second challenge instead of a captcha; learning mode, dashboard, log, IP tester and Cloudflare export. HPOS and blocks compatible.
The campaign block theme for WooCommerce that makes a store feel like a sale is always on: a flash bar with the sale that ends first, a bento hero with a live deal tile, a dark flash deals zone with flip-tile countdowns on real sale end dates, round discount stickers, a category pill bar, stories with a player, a Discover feed with promo cells inside the grid, a product page campaign strip and a sticky phone buy bar. Sixteen colour styles as Site Editor style variations, two of them dark. Cart and Checkout blocks styled, HPOS neutral.