Introduction of Conditional Payments for WooCommerce Plugin

The payment methods that make sense for a cart can change from order to order. For example, you might want PayPal for some checkouts and Direct Bank Transfer only for others. Showing every gateway in every situation is often unhelpful.

Conditional Payments for WooCommerce (also called Conditional Payment Methods for WooCommerce) lets you show or hide payment methods based on conditions you set, and, in Pro, add a fee to a payment method. You manage rules at WooCommerce > Settings > Payments > Conditions.

What you can do with Conditional Payments

You create rules on the Conditional Payments Rules list. Each rule has a Status toggle, a Rule Name, one or more Conditions, one or more Actions, and Save Changes.

In the current rule form, a condition has a field, an operator such as Equal to ( = ), and a value. You can click + Add Condition to add another condition. An action starts with an action type; the current form shows Enable Payments Methods as an action, and you can click + Add Action to add another action. You can also fill in Set no payment methods message (Pro) when a cart should have no available payment methods.

Conditions in the current admin are grouped as follows:

  • Product Specific: Product, Variable Product, Product Categories, Product Brands, Product Tags, Product Type, Product Visibility, Product Quantity, Stock Status
  • Cart Specific: Cart Subtotal (Before Discount), Cart Subtotal (After Discount), Cart Subtotal (Specific Products), Cart Quantity, Shipping Class, Coupon, Total Weight, Number Of Items, Total Volume
  • Shipping Specific: Shipping Method
  • Billing Address: First Name, Last Name, Company, Address, Address 2, Country, State / Province, City, Postcode, Email, Phone
  • Customer: Logged in / out, User, User Role, Previous Order (the dropdown continues below this; not all items are visible in the current screenshot)

Existing documentation and screenshots also show these actions: Enable Payments Methods (the current form uses this label; some older screenshots say Enable Payments Method), Disable Payments Method, and Add Payment Method Fee. The plugin works with WooCommerce’s default payment methods and with popular third-party gateways such as Stripe, PayPal, PayFast, and Braintree.

Free and Pro features

A free version, Conditional Payment Methods for WooCommerce, is available on WordPress.org. The product page and the current introduction describe the split as follows.

The free (Light) version includes:

  • Quick setup of conditional payment rules
  • Unlimited rules, with the option to enable or disable each rule
  • Bulk actions and a search box on the Conditional Payments Rules list
  • Multiple conditions and multiple actions in one rule
  • Support for many payment gateways
  • Restrict payment methods based on billing or shipping address fields
  • Actions to show or hide selected payment methods

The Pro version includes the free features, plus:

  • Set no payment methods message, so you can show a custom message when no payment method is available
  • Add Payment Method Fee, so you can add a fixed or percentage fee to a payment method
  • Additional condition types listed for Pro in the current introduction, including product categories, shipping class, coupons, billing email, logged in / out status, specific users and user roles, previous orders, cart quantity, product quantity, and cart total weight

The product page also lists time-specific rules and Debug Mode as plugin features. Those are covered in the getting started guide. Learn more on the Conditional Payments product page and the WordPress.org free listing.

How to get started

  1. Go to WooCommerce > Settings > Payments, then open Conditions.
  2. On the Conditional Payments Rules list, click Add New.
  3. Turn on Status, enter a Rule Name, add at least one condition and one action, then click Save Changes.

For the full install and setup steps, see Getting Started with Conditional Payments for WooCommerce Plugin.

Pro Tips

  • Give each rule a clear Rule Name, such as the payment method and the condition it uses, so the rules list is easy to scan.
  • Use the Status toggle to turn a rule off without deleting it.
  • If you hide every payment method for some carts, set Set no payment methods message so customers see an explanation at checkout (Pro).
  • Test the rule at checkout after you click Save Changes. You can use Debug Mode from the getting started guide if a rule does not behave as you expect.

Common Use Cases

Here are some popular ways store owners use the plugin:

1. Show or hide a method by billing country

Use a Country condition in Billing Address to hide Cash on Delivery for some countries, or to show a method only for local checkouts.

2. Restrict a method by cart subtotal

Use Cart Subtotal (Before Discount) or Cart Subtotal (After Discount) to hide a method, such as Direct Bank Transfer, when the cart is above a set amount.

3. Limit methods for a product or category

Use Product or Product Categories so a specific item, such as a fragile product, can only use the payment methods you allow.

4. Add a payment method fee (Pro)

Use Add Payment Method Fee when you want to add a handling or processing fee to a gateway under a condition, such as a low cart subtotal or a heavy cart.

FAQs

1. Where do I manage Conditional Payments rules?

Go to WooCommerce > Settings > Payments, then open Conditions. The Conditional Payments Rules list is there, with Add New, bulk actions, search, and each rule’s Status toggle.

2. Can I show or hide payment methods, and can I add a fee?

Yes. The current rule form includes Enable Payments Methods. Existing documentation and screenshots also show Disable Payments Method and Add Payment Method Fee. Fees and Set no payment methods message are Pro features.

3. Does the plugin work with third-party payment gateways?

Yes. The product page and WordPress.org listing say it works with WooCommerce’s default methods and with popular gateways such as Stripe, PayPal Checkout, PayFast, and Braintree.

4. Is there a free version?

Yes. Conditional Payment Methods for WooCommerce is available on WordPress.org. Pro adds the custom no-payment-methods message, payment method fees, and additional condition types.

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