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.
In The Article
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:
- Go to WordPress Dashboard > Plugins > Add New.
- Click Upload Plugin, choose the plugin zip file, and click Install Now.
- 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.
Step 2: Open Conditional Payments Rules
- Go to WooCommerce > Settings > Payments, then open Conditions.
- 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.)
Step 3: Add a rule name and set the status
- On the Add Conditional Payments Rules form, turn on the Status toggle so the rule is active.
- Enter a clear Rule Name, for example “Disable COD payment for country US”.
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.
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.
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.
- Go to WooCommerce > Settings > Payments, then open Conditions and click Add New.
- Turn on Status and enter a Rule Name, such as “PayPal Transaction Fee Rule”.
- Add a condition. In the example below, Cart Subtotal (Before Discount) is less than or equal to 50.
- 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).
- Click Save Changes, then test the fee at checkout.
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.
- Open Advanced Settings and turn on Debug Mode, then click Save Changes.
- Go to checkout and open the Conditional Payment Methods Debug panel to see how your rules were evaluated.
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.