Start a free 14-day trial by December 1 on a wide range of WooCommerce Marketplace extensions and themes. Explore products

Payment Method Based Fee & Discounts

This guide explains how to install the Payment Method Based Fee & Discounts extension and create rule-based fees and discounts. Each rule defines the adjustment and its conditions. Payment methods are selected as rule conditions; adjustments are configured in the rule editor, not in individual payment method settings.

Installation

↑ Back to top

1. Download the extension ZIP file from your WooCommerce account.

2. In your WordPress admin, go to Plugins > Add New Plugin.

3. Select Upload Plugin, choose the downloaded ZIP file, and select Install Now.

4. When installation finishes, select Activate Plugin.

5. In the WordPress admin menu, open WooCommerce > Payment Fee to manage fee and discount rules.

If the menu item does not appear, confirm that the extension is active and that your account has permission to manage WooCommerce settings.

Initial Setup

↑ Back to top

The extension uses rules to control adjustments. Create a separate rule for each fee or discount scenario you want to manage. A rule can be limited by payment method and by other conditions such as dates, cart amount, country, customer role, customer, product, category, or brand.

Rule-based management

↑ Back to top

Open WooCommerce > Payment Fee to see the rules list. From this page you can add a rule, open a rule to edit it, or review its title, date, priority, and status. Use Add New Fee/Discount to start a rule.

  • Adjustment: whether to add a fee or apply a discount, its customer-facing title, calculation type, value, and where it applies.
  • Conditions: the payment method and any restrictions that determine when the adjustment applies.

Select the payment gateway in the rule’s Payment Methods field. The rule applies when the customer’s selected gateway matches the rule and the other configured conditions are met. Available gateways depend on the payment methods enabled on the store.

Use the rule’s Priority order field to assign an order value. The rules table shows each rule’s title, publication date, priority, and status. Review overlapping rules carefully and test the result in your store before launch. The rule editor provides Save Draft, Preview, and Publish actions; a draft is not published to customers.

Figure 1. Rules log

Creating new Discounts or Fees

↑ Back to top

1. Go to WooCommerce > Payment Fee and select Add New Fee/Discount.

2. Enter a descriptive rule title at the top of the editor. This is the rule’s admin title.

3. In Fee/Discount Settings, configure the adjustment:

  • Select Fee/Discount: choose Fee to add a charge or Discount to reduce the amount.
  • Fee Title: enter the label customers should see for this adjustment at checkout.
  • Fee Type: choose Fixed for a set amount or Percentage for a percentage-based amount.
  • Fee Value: enter the amount or percentage for the selected type.
  • Minimum Fee Value and Maximum Fee Value: optionally set lower and upper limits for the calculated fee or discount.
  • Apply on: choose Subtotal or Each Product, as appropriate for the rule.

Figure 2. Fee/Discount settings

4. In General Options, select one or more Payment Methods. These gateways make the rule eligible to apply. Enable Taxes if the fee should be taxable under your store’s tax setup, then choose the appropriate Tax Class when the field is available.

Figure 3. General Options

5. In Restrictions, set any limits needed for the rule. Leave a restriction empty when it should not limit the rule:

  • Date Range: set the start and end dates if the rule should apply only during a specific period.
  • Cart Amount Restriction: set the minimum and maximum cart amounts for eligibility.
  • Apply by Countries: choose Include or Exclude, then select the countries. With no countries selected, the rule can apply to all countries.
  • User Roles: select the roles covered by the rule. With no roles selected, it can apply to all roles.
  • Exclude Customers: select customers who should not receive the adjustment. With no customers selected, no customers are excluded.
  • Apply by Products, Categories, and Brands: select the relevant catalog items or groups. An empty selector does not restrict the rule by that catalog field.

Figure 4. Restrictions

6. Review the title, adjustment, payment methods, restrictions, and priority. Select Preview if you want to review the draft, then select Publish when the rule is ready.

7. Test the rule in the cart and checkout using a matching payment method and matching customer and cart details. Also test a payment method or condition that should not match, to confirm that the rule is limited as intended.

Example: To add a percentage fee for cash on delivery, create a rule, select Fee, enter the checkout label (for example, “Cash on delivery fee”), choose Percentage, enter the desired percentage, and select Subtotal under Apply on. Then choose Cash on delivery under Payment Methods, configure any restrictions, and publish the rule. The fee is configured by this rule; the payment method is its condition.

The exact payment gateway choices shown in the editor vary with the gateways enabled on your store. Tax treatment and the final checkout total depend on your WooCommerce tax configuration and any other active pricing or checkout extensions. Verify the displayed adjustment and totals in your own checkout before using a rule on a live store.

Related Products

WooCommerce Subscriptions is a WooCommerce extension that lets customers subscribe to your products or...

Offer add-ons like gift wrapping, special messages or other special options for your products.

Use of your personal data
We and our partners process your personal data (such as browsing data, IP Addresses, cookie information, and other unique identifiers) based on your consent and/or our legitimate interest to optimize our website, marketing activities, and your user experience.