# WooCommerce Payment Gateway Based Fees

`meteorgpl-plugin/woocommerce-additional-fees` — a WordPress plugin as a Composer package.

Add fees to an order automatically depending on the payment gateway. The fees are calculated on product level and/or on total cart value on checkout page, pay-for-order page and admin order page. The admin can change the amount added in the backend and can also disable calculation of fees for a specific order for the pay-for-order page.

- Author: InoPlugs — https://woothemes.com/
- Homepage: https://www.woothemes.com/products/payment-gateway-based-fees/
- License: GPL-3.0-only (profile: gpl-full)
- Buy a license from the vendor: https://www.woothemes.com/products/payment-gateway-based-fees/
- Latest version: 5.2.2 (2026-04-06)
- Page: https://meteorgpl.com/packages/meteorgpl-plugin/woocommerce-additional-fees
- Requires WordPress: 6.0
- Tested up to WordPress: 6.9.3
- Requires PHP: 7.4
- Translations: de_DE
- Vendor: WooThemes — https://meteorgpl.com/vendors/woothemes.com

## Changelog

### 2025.04.01

* added: in active beta support for automatic tax calculation in WC Tax and Shipping plugin  - a hack only, because there is no relyable hook for second calculation caused by taxjar
	* added: parameters to filter wc_add_fees_wc_calculated_totals_done_check (should be deprecated when using WC Tax and Shipping plugin)

### 2025.02.28

* tweak: WooPayments compatibility - replaced $gateway->title with $gateway->get_title() (https://github.com/Automattic/woocommerce-payments/issues/10280)

### 2025.02.03

* fixed: error in wc_additional_fees_block_checkout.js when global object wc does not exist

### 2025.01.28

* fixed: broken block checkout page with WC 9.6 (removed 'wc-blocks' in wp_register_script( 'wc_additional_fees_block_script', ....)
	* tweak: added an is_array check to handler_wc_add_settings_tab_array() to fix 3-rd party plugin conflict rendering null

### 2024.12.14

* tweak: improve block checkout DOM monitoring for payment gateway radio buttons

Full changelog: https://meteorgpl.com/packages/meteorgpl-plugin/woocommerce-additional-fees/changelog

## Install

```sh
composer config repositories.meteorgpl composer https://composer.meteorgpl.com
composer require meteorgpl-plugin/woocommerce-additional-fees
```

The repository needs a token (see https://meteorgpl.com/docs). The vendor's license checks are intact: activate the plugin in WordPress with a key bought from the vendor.

## Versions

| Version | Released | Size | SHA-256 | Status |
| --- | --- | --- | --- | --- |
| 5.2.2 | 2026-04-06 | 185.0 KB | 61a01844bb783bf6671f1ed02cfdc7655c4efcf06a8062a1af623052665f6792 | verified |
| 5.2 | 2025-04-01 | 184.2 KB | 1e7b81744b620216d2eb322c1fea27510d56508ed6db29fb051b5947fa778626 | verified |
| 5.1.1 | 2024-12-14 | 183.3 KB | 7b86b852f40eb03aa5f31fd549cd7a7701c1a5ee7dcd3065df1ff6e47c937d65 | verified |
| 5.0 | 2024-10-21 | 183.1 KB | e8403e4ec5fe4588450e263c45514154edcea7f58e38706f3c145fabe9259361 | verified |
| 4.2 | 2024-08-31 | 214.9 KB | c10d591cf47b81a9f11b3e45890118323811f75487393d15f2a0418c0b8c076d | verified |
| 2.2.6 | 2015-03-17 | 190.0 KB | d2d84bdcac116a9326202413256027085cefd10a3cc7e161476c387fd24396d8 | verified |

