Title: HDWebmobile Payment Gateway Fees
Author: HDWebMobile
Published: <strong>December 6, 2026</strong>
Last modified: December 6, 2026

---

Search plugins

![](https://ps.w.org/hdwebmobile-payment-gateway-fees/assets/banner-772x250.png?
rev=3847031)

![](https://ps.w.org/hdwebmobile-payment-gateway-fees/assets/icon-256x256.png?rev
=3847031)

# HDWebmobile Payment Gateway Fees

 By [HDWebMobile](https://profiles.wordpress.org/htrxuan/)

[Download](https://downloads.wordpress.org/plugin/hdwebmobile-payment-gateway-fees.1.0.1.zip)

 * [Details](https://wordpress.org/plugins/hdwebmobile-payment-gateway-fees/#description)
 * [Reviews](https://wordpress.org/plugins/hdwebmobile-payment-gateway-fees/#reviews)
 *  [Installation](https://wordpress.org/plugins/hdwebmobile-payment-gateway-fees/#installation)
 * [Development](https://wordpress.org/plugins/hdwebmobile-payment-gateway-fees/#developers)

 [Support](https://wordpress.org/support/plugin/hdwebmobile-payment-gateway-fees/)

## Description

Some payment methods cost your store more than others. HDWebmobile Payment Gateway
Fees lets you pass that cost on, reward cheaper methods, or hide a method when it
does not make sense.

 * Add a **Cash on delivery fee**
 * Give a **5% discount for bank transfer**
 * Add a small surcharge for a costly payment method
 * **Hide cash on delivery** for orders over a certain amount, outside your country,
   or for wholesale customers

Each rule chooses one or more payment methods and an action. Optional conditions
decide when it applies: cart subtotal, cart weight, coupons used, shipping country,
customer role, the chosen shipping method and product categories in the cart.

The fee or discount appears as its own line in the cart and checkout totals, updates
as soon as the customer picks a different payment method, and is saved on the order.

#### Actions

 * Add a fixed fee
 * Add a percentage fee
 * Give a fixed discount
 * Give a percentage discount
 * Hide the payment method

#### Works with

 * The block-based Checkout and the classic shortcode checkout
 * Any payment method that is set up in WooCommerce
 * Taxable or non-taxable fees

#### Technical & Security Highlights

 * Every amount is calculated on your server from the cart. The browser only reports
   which payment method is selected, and only a payment method that is actually 
   available is accepted.
 * When the order is placed, the payment method submitted with the order is used
   for the final total, so the fee on the order always matches how the customer 
   pays.
 * Discounts can never take the total below zero.
 * Only users who can manage WooCommerce can change rules, and every change is protected
   by a nonce. Every value is validated on save.
 * **HPOS compatible.** Declared compatible with WooCommerce High-Performance Order
   Storage. Order data, where used, goes through the WooCommerce order API.

#### Scope & Limitations

 * Percentage fees and discounts are based on the cart total after coupons plus 
   shipping.
 * Some payment providers’ terms limit surcharging, and surcharges on consumer card
   payments are not allowed in the EU. Check the rules that apply to you before 
   adding a fee.
 * Up to 100 rules.

### External services

This plugin can connect to the WordPress.org Plugin Directory API (api.wordpress.
org), but only after an administrator clicks “Look up on WordPress.org” on the WooCommerce
> HDWebmobile page. The lookup asks which plugins by the author “htrxuan” are listed
on WordPress.org, so newly released HDWebmobile plugins can be installed from that
page. It runs at most twice a day, only while an administrator who can install plugins
views that page, and it can be turned off again with “Stop looking up”. The request
contains only the author name, plus the information WordPress sends with every request(
your site’s address and WordPress version in the user agent). No store, order or
customer data is sent. WordPress.org privacy policy: https://wordpress.org/about/
privacy/

### How to Use

#### 1. Add a rule

Click **Add rule**, give it a name and tick the payment methods it applies to.

#### 2. Choose the action

Pick a fee, a discount or “Hide the payment method”. For fees and discounts, enter
the amount and the label customers will see, such as “Cash on delivery fee”.

#### 3. Add conditions (optional)

Limit the rule by cart subtotal, cart weight, coupons used, shipping country, customer
role, chosen shipping method or product categories. Empty conditions are ignored.

## Screenshots

[⌊The rules list.⌉⌊The rules list.⌉[

The rules list.

[⌊Editing a rule.⌉⌊Editing a rule.⌉[

Editing a rule.

[⌊A payment fee in the block checkout totals.⌉⌊A payment fee in the block checkout
totals.⌉[

A payment fee in the block checkout totals.

## Installation

 1. Upload the plugin files to the `/wp-content/plugins/hdwebmobile-payment-gateway-
    fees` directory, or install the plugin through the WordPress plugins screen directly.
 2. Activate the plugin through the ‘Plugins’ screen in WordPress. WooCommerce must
    already be installed and active.
 3. Go to **WooCommerce > HDWebmobile > Payment Fees** to add your first rule.

## FAQ

### Does the total update when the customer switches payment method?

Yes, on both the block checkout and the classic checkout.

### Can several rules apply at once?

Yes. Each matching rule adds its own line.

### What if I hide the payment method the customer had selected?

WooCommerce switches to the next available method, and its fee or discount is applied
instead.

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“HDWebmobile Payment Gateway Fees” is open source software. The following people
have contributed to this plugin.

Contributors

 *   [ HDWebMobile ](https://profiles.wordpress.org/htrxuan/)

[Translate “HDWebmobile Payment Gateway Fees” into your language.](https://translate.wordpress.org/projects/wp-plugins/hdwebmobile-payment-gateway-fees)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/hdwebmobile-payment-gateway-fees/),
check out the [SVN repository](https://plugins.svn.wordpress.org/hdwebmobile-payment-gateway-fees/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/hdwebmobile-payment-gateway-fees/)
by [RSS](https://plugins.trac.wordpress.org/log/hdwebmobile-payment-gateway-fees/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.0.1

 * New: an optional “Look up on WordPress.org” button on the WooCommerce > HDWebmobile
   page. When an administrator turns it on, newly released HDWebmobile plugins can
   be installed from that page. It is off by default; see External services in this
   readme.

#### 1.0.0

 * Initial release: fees, discounts and hiding per payment method with subtotal,
   weight, coupon, country, role, shipping method and category conditions.

## Meta

 *  Version **1.0.1**
 *  Last updated **3 hours ago**
 *  Active installations **Fewer than 10**
 *  WordPress version ** 6.4 or higher **
 *  Tested up to **7.2**
 *  PHP version ** 7.4 or higher **
 * Tags
 * [cash on delivery fee](https://wordpress.org/plugins/tags/cash-on-delivery-fee/)
   [hide payment methods](https://wordpress.org/plugins/tags/hide-payment-methods/)
   [payment discount](https://wordpress.org/plugins/tags/payment-discount/)[payment fees](https://wordpress.org/plugins/tags/payment-fees/)
   [surcharge](https://wordpress.org/plugins/tags/surcharge/)
 *  [Advanced View](https://wordpress.org/plugins/hdwebmobile-payment-gateway-fees/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/hdwebmobile-payment-gateway-fees/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/hdwebmobile-payment-gateway-fees/reviews/)

## Contributors

 *   [ HDWebMobile ](https://profiles.wordpress.org/htrxuan/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/hdwebmobile-payment-gateway-fees/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](https://paypal.me/htrxuan/20)