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

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

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.