---
title: Fee or discount by payment method in WooCommerce
description: "Add a cash on delivery fee, a card surcharge or a bank transfer discount in WooCommerce with Pricepep's Payment method condition, in any checkout."
url: "https://pricepep.com/docs/fee-by-payment-method/"
updated: "2026-12-02"
category: Examples
---

# Fee or discount by payment method in WooCommerce

To charge a fee for one payment method, create a checkout fee with the condition **Payment method** **in list** and that method, for example a $3.00 **Fixed fee** for Cash on delivery. For a discount, create a cart discount with the same condition.

## How do I add a cash on delivery fee?

1. Go to **WooCommerce > Pricepep > Checkout Fees** and click **Add Rule**.
2. Type a **Title - Public**: "Cash on delivery fee". Customers see it in the totals.
3. Under **Fee**, choose **Fixed fee** and type `3`.
4. Under **Conditions**, click **Add Condition**: **Payment method**, **in list**, Cash on delivery.
5. Click **Save Changes**.

## How do I add a card surcharge?

Same steps with **Fee** **Percentage fee** `2` and **Payment method** in list your card payment method. The percentage is taken from the cart subtotal: product prices after product pricing rules, before cart discounts and coupons, without shipping. For a $150 cart the fee is $3.00. See [why a percentage fee is calculated before the cart discount](/docs/why-is-a-percentage-fee-calculated-before-the-cart-discount/).

## How do I give a discount for bank transfer?

1. Go to **WooCommerce > Pricepep > Cart Discounts** and click **Add Rule**.
2. **Title - Public**: "Bank transfer discount".
3. **Discount**: **Percentage discount** `3`.
4. **Conditions**: **Payment method**, **in list**, Direct bank transfer.
5. Click **Save Changes**.

## When does the fee appear?

| Where | Behaviour |
| --- | --- |
| Cart page | Uses the payment method chosen earlier in the session, if any. |
| Classic checkout | Updates when the customer selects another method. |
| Checkout block | Updates when the customer selects another method (since 2.6). |
| Express payment buttons | Since 2.6, rules use the method the order is placed with. |

Before 2.6, the Checkout block and express buttons could use the method chosen earlier in the session. Update if you see a fee or discount that doesn't match the payment method.

## Tips

- **Tax:** **Tax class** in the Checkout Fees section of **Settings** decides how fees are taxed. With prices entered including tax, a taxable fixed fee is treated as including tax. See [checkout fees and tax](/docs/checkout-fees-and-tax/).
- **Several fees:** with the default **Rule selection method** only the first applicable fee rule applies. Choose **Apply all applicable rules** to charge several.
- **Fee by shipping method:** use the **Shipping method** condition the same way.

## Frequently asked questions

### Does the fee update when the customer picks another payment method?

Yes. The classic checkout and, since Pricepep 2.6, the Checkout block update the totals when the payment method changes.

### Is the payment method fee taxed?

It follows the Tax class setting for checkout fees on the Settings tab (Standard Rate by default, or Not Taxable).

## Related articles

- [Checkout fees: add surcharges in WooCommerce](https://pricepep.com/docs/checkout-fees/)
- [Checkout fees and tax in Pricepep](https://pricepep.com/docs/checkout-fees-and-tax/)
- [Why is a percentage fee calculated before the cart discount?](https://pricepep.com/docs/why-is-a-percentage-fee-calculated-before-the-cart-discount/)
- [Pricepep with the Cart and Checkout blocks](https://pricepep.com/docs/cart-and-checkout-blocks/)

All articles in [Examples](https://pricepep.com/docs-category/examples/)
