Conditional Payments for WooCommerce allows you to restrict payment methods based on conditions. For example, you can enable Cash on Delivery only when the shipping method is Local pickup.
The plugin works with your existing payment methods. You can restrict PayPal, Stripe, Cash on Delivery and any other payment method.
You have two payment methods, PayPal and Cash on Delivery. PayPal can be used for all orders but COD only when the customer pickups the order.
With Conditional Payments you can add shipping method condition to Cash on Delivery which checks that the shipping method is Local pickup.
You want to provide invoice payment method only for business customers. You can add billing company condition to Invoice to prevent private customers from ordering with Invoice.
- Restrict WooCommerce payment methods based on conditions
- Works with existing payment methods
- WooCommerce 5.x, 6.x and 7.x compatible
- Order Subtotal
- Shipping method
- Billing address (all fields)
- Shipping address (all fields)
- All free features
- Add payment method fees conditionally
- More conditions
- Shipping class
- Product category
- Logged in / out
- User role
- Language (Polylang or WPML)
- And more
If you need any help with the plugin, please create a new post on the WordPress plugin support forum. It will be checked regularly but please note that response cannot be guaranteed to all issues. Priority email support is available for the Pro version.
Other Useful Plugins
Make sure to check out other useful plugins from the author.
Conditional Payments is installed just like any other WordPress plugin.
- Download the plugin zip file
- Go to Plugins in the WordPress admin panel
- Click Add new and Upload plugin
- Choose the downloaded zip file and upload it
- Activate the plugin
Once the plugin is activated, you can add rulesets in WooCommerce > Settings > Payments > Conditions.
Bidragsgivare och utvecklare
”Conditional Payments for WooCommerce” är programvara med öppen källkod. Följande personer har bidragit till detta tillägg.Bidragande personer
- Declared compatibility with High-Performance Order Storage (HPOS)
- Added option for hiding Pro features
- Added debug mode for easy troubleshooting
- Rulesets can now be ordered by drag-and-drop. Rulesets are evaluated from top to bottom
- Improved user interface
- Fixed bug which crashed the checkout if WooCommerce Multilingual & Multicurrency by WPML was activated but multicurrency functionality was not enabled
- Added AND / OR selection for rulesets (one / all conditions have to pass)
- Added support for the following multi-currency plugins: Aelia Currency Switcher for WooCommerce, FOX – Currency Switcher Professional for WooCommerce and WooCommerce Multilingual & Multicurrency (by WPML)
- Improved compatibility with WPML
- CSRF fix
- Removed unnecessary error logging
- Added Disable all setting for disabling all rulesets at once (WooCommerce > Settings > Payments > Conditions > Disable all) for easy troubleshooting
- Added condition for customer billing / shipping state
- Updated WooCommerce compatibility info
- Updated WooCommerce compatibility info
- Removed debug message causing unnecessary log messages
- Fixed bug with Products condition which prevented it to work with a lot of product variations
- Added AJAX toggle for ruleset state (enabled / disabled)
- Added Health Check to catch common issues with rulesets
- Excluded taxes from the subtotal condition if the store displays subtotal excluding tax (WooCommerce > Settings > Tax > Display prices during cart and checkout). Please note! Ensure rulesets are working correctly after updating if you have subtotal conditions.
- For developers: added better support for implementing custom conditions
- WooCommerce 4.1.x compatibility check
- Made address filters case-insensitive (previously case-sensitive)
- For developers: added WP filters for adding support for 3rd party shipping method plugins
- Improved product search
- Added range and wildcard filtering for postcode condition
- Added functionality for enabling / disabling rulesets
- Moved conditions from payment method setting pages to separate settings page (WooCommerce > Settings > Payments > Conditions). This change will allow more advanced functionality in upcoming versions. Important! Check that conditions are working correctly after updating.
- Updated compatibility info
- Added support for Flexible Shipping plugin
- Added link to Pro version
- Initial version