Getting Started with Conditional Payments for WooCommerce Plugin

Conditional Payments for WooCommerce lets you control which payment methods appear at checkout, based on conditions you set. You can show or hide a method, and in Pro you can add a fee to a payment method.

After you install the plugin, you create rules at WooCommerce > Settings > Payments > Conditions. Each rule has a Status, Rule Name, Conditions, Actions, and Save Changes.

How to get started

Install and activate the plugin, then create your first rule from the Conditions screen.

Step 1: Install and activate the plugin

If you have the Pro zip file:

  1. Go to WordPress Dashboard > Plugins > Add New.
  2. Click Upload Plugin, choose the plugin zip file, and click Install Now.
  3. Click Activate Plugin.

For a longer walkthrough that also covers FTP, cPanel, Multisite, and license activation, follow this detailed install and activation guide.

You can also install the free plugin, Conditional Payment Methods for WooCommerce, from the WordPress plugin directory, or upload the conditional-payments folder to wp-content/plugins and then activate it.

Once the plugin is active, it appears in the plugins list as Conditional Payment Methods for WooCommerce. Open WooCommerce > Settings > Payments to reach the Conditions screen.

Plugins screen showing Conditional Payment Methods for WooCommerce (Premium) installed and active
Figure - The plugin active on the Plugins screen

Step 2: Open Conditional Payments Rules

  1. Go to WooCommerce > Settings > Payments, then open Conditions.
  2. On the Conditional Payments Rules list, click Add New.

This list shows each rule’s title, Status toggle, and date. You can also use Bulk actions, Apply, and Search. The Payments tab includes a General and Conditions sub-nav. (Older screenshots may label the first sub-nav item Payment methods instead of General.)

WooCommerce Settings Payments tab showing the Conditions sub-nav, the Conditional Payments Rules list, and the Add New button
Figure - The Conditional Payments Rules list, with Add New

Step 3: Add a rule name and set the status

  1. On the Add Conditional Payments Rules form, turn on the Status toggle so the rule is active.
  2. Enter a clear Rule Name, for example “Disable COD payment for country US”.
Add Conditional Payments Rules form with the Status toggle on and a Rule Name entered
Figure - Status and Rule Name on the rule form

Step 4: Add conditions

In Conditions, choose a condition field, an operator such as Equal to ( = ), and a value. Click + Add Condition if you need another condition.

Conditions in the current admin are grouped as Product Specific, Cart Specific, Shipping Specific, Billing Address, and Customer. Examples include Product, Product Categories, Cart Subtotal (Before Discount), Total Weight, Shipping Method, Country, Logged in / out, User Role, and Previous Order. The Customer group continues below Previous Order in the dropdown.

The Conditions section of the rule form, with a condition field, operator, value, and Add Condition button
Figure - The Conditions section of a rule
The Conditions dropdown open, showing Product Specific, Cart Specific, and Shipping Specific condition options
Figure - Available condition options in the rule form

Step 5: Add actions and save

In Actions, choose what should happen when the conditions are met. The current rule form shows Enable Payments Methods as an action. Existing documentation screenshots also show Disable Payments Method and Add Payment Method Fee. Select the payment method or methods for that action, click + Add Action if you need another action, then click Save Changes.

If the rule can leave a cart with no payment methods, fill in Set no payment methods message (Pro) so customers see an explanation at checkout.

Actions section with Disable Payments Method selected and Cash on delivery chosen, plus an Add Action button
Figure - The Actions section, with Disable Payments Method
Checkout page for a United States billing country showing Direct bank transfer and Check payments, with Cash on Delivery not listed
Figure - A checkout page with a payment method hidden by a rule

Adding a payment method fee

In Pro, you can add a fee to a payment method when the rule conditions are met. For example, you can add a processing fee when the cart subtotal is below a set amount.

  1. Go to WooCommerce > Settings > Payments, then open Conditions and click Add New.
  2. Turn on Status and enter a Rule Name, such as “PayPal Transaction Fee Rule”.
  3. Add a condition. In the example below, Cart Subtotal (Before Discount) is less than or equal to 50.
  4. In Actions, choose Add Payment Method Fee. Select the payment method (for example, PayPal), enter a fee title (for example, Processing Fee), enter the amount, choose a fixed amount (shown as $) or a percentage, and choose a tax class if needed (for example, Standard).
  5. Click Save Changes, then test the fee at checkout.
A rule with Cart Subtotal (Before Discount) less than or equal to 50, and an Add Payment Method Fee action for PayPal with a Processing Fee of 5 and Standard tax class
Figure - An Add Payment Method Fee action on the rule form
Checkout page with PayPal selected and a $5.00 Processing Fee added to a $45.00 subtotal
Figure - A checkout page showing a payment method fee

Testing rules with Debug Mode

The existing guide and its screenshot show a Debug Mode toggle under Advanced Settings, with a Save Changes button. When debug mode is on, checkout can show a Conditional Payment Methods Debug panel with payment methods before and after filtering, the rules that were evaluated, and a pass or fail result for each condition.

  1. Open Advanced Settings and turn on Debug Mode, then click Save Changes.
  2. Go to checkout and open the Conditional Payment Methods Debug panel to see how your rules were evaluated.
Advanced Settings with the Debug Mode toggle turned on and a Save Changes button
Figure - The Debug Mode setting in Advanced Settings
Checkout debug panel titled Conditional Payment Methods Debug, showing payment methods before and after filtering and a rule with pass or fail condition results
Figure - The debug panel on the checkout page

The current Payments > Conditions rules list in the latest admin screenshots does not show Advanced Settings, so the exact current location of Debug Mode (for example, whether it is on the General sub-nav) is not confirmed in those screenshots. If you cannot find it on the rules list, look under General or Advanced Settings on the Payments screen.

Pro Tips

  • Use a Rule Name that states the method and the condition, so the rules list stays easy to scan.
  • Turn a rule off with the Status toggle while you test, instead of deleting it.
  • After you save, place a matching test order at checkout and confirm the payment methods (and any fee) are correct.
  • If a rule can remove every payment method, add a Set no payment methods message.
  • Use Debug Mode when a rule does not apply as you expect, and check the pass/fail results for each condition.

Common Use Cases

Here are some popular ways to start:

1. Hide a method for a billing country

Create a rule with a Country condition and a Disable Payments Method action, then confirm at checkout that the method is hidden for that country.

2. Add a processing fee for a low cart total (Pro)

Use Cart Subtotal (Before Discount) with Add Payment Method Fee so a gateway such as PayPal can include a processing fee below a set amount.

3. Enable a method only for certain products

Use a Product condition with Enable Payments Methods when a method should appear only for the products you select. See the use cases guide for more examples.

FAQs

1. Where do I create a rule after the plugin is active?

Go to WooCommerce > Settings > Payments, then open Conditions. Click Add New on the Conditional Payments Rules list.

2. What actions can a rule use?

The current rule form shows Enable Payments Methods. Existing documentation screenshots also show Disable Payments Method and Add Payment Method Fee. You can add more than one action with + Add Action.

3. How do I add a payment method fee?

In Pro, add an Add Payment Method Fee action, choose the payment method, enter a fee title and amount, choose a fixed amount or a percentage, and choose a tax class if needed, then click Save Changes.

4. How can I tell why a rule is not applying at checkout?

Turn on Debug Mode in Advanced Settings and review the Conditional Payment Methods Debug panel at checkout. It shows payment methods before and after filtering, and whether each condition passed or failed.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.