⌘ K

Search

Search portal content

Dreamfox MediaDreamfox Media
⌘ K

Search

Search portal content

Dreamfox MediaDreamfox Media
      • How to Set Category-Based Payment Gateway Rules
      • How to Set Tag-Based Payment Gateway Rules
      • Using Include and Exclude Logic
      • Configuring Fallback Behavior
    • Automatic Installation
    • Using with my Wordpress theme
    • Can I use this plugin with my existing Wordpress theme?
    • The plugin is not working
    • How to work with payment gateways per category
    • Payment Options Not Visible in Sidebar
    • Where can DFM Gateway plugin for WooCommerce be used for?
    • Where can I set different payments methods?
    • Automatic Installation free DFM Payment plugin for WooCommerce
    • Manual Installation Method 1 DFM Payment Gateway plugin for WooCommerce
    • Manual Installation Method 2 DFM Payment Gateway plugin for WooCommerce
    • How to Use the Tag Option
  1. Home
  2. WooCommerce Plugins
  3. Payment gateway per product
  4. Configuring Gateway Rules

Using Include and Exclude Logic

Fine-tune checkout with include/exclude gateway logic — control exactly which payment methods appear or are hidden.

Using Include and Exclude Logic

Fine-tune checkout with include/exclude gateway logic — control exactly which payment methods appear or are hidden.

Using Include and Exclude Logic

Include/Exclude logic is a Premium feature that gives you a second dimension of control beyond simply selecting which gateways to show.

The difference between Include and Exclude

  • Include — only the gateways you select will be shown for this product, category, or tag. All others are hidden.
  • Exclude — all active WooCommerce gateways are shown except the ones you select.

Exclude mode is useful when you have many gateways and only want to hide one or two — it's much faster than selecting every allowed gateway individually.

How to switch between Include and Exclude

When editing a product, category, or tag, the Payment Gateways panel shows a toggle or dropdown to choose the rule mode. Select Include or Exclude, then pick the relevant gateways from the list.

Practical examples

Scenario 1 — Include: You sell a digital product and want only PayPal and Stripe. Set rule to Include → select PayPal and Stripe. At checkout, customers see only those two options.

Scenario 2 — Exclude: You sell a fragile item and want to block Cash on Delivery, but keep all other gateways. Set rule to Exclude → select Cash on Delivery. At checkout, customers see every gateway except COD.

Rule precedence

Include/Exclude rules are applied per level (product, category, tag) and then intersected. If a product-level Include rule allows Stripe and PayPal, but a category-level Exclude rule removes PayPal, the result at checkout is Stripe only.

When rules conflict in a way that leaves zero gateways, the configured fallback behavior takes over. See Configuring Fallback Behavior for details.

How to Set Tag-Based Payment Gateway Rules

Use WooCommerce product tags to define flexible payment gateway visibility rules across your catalog.

Configuring Fallback Behavior

Set what happens at checkout when no payment gateway rule matches the products in the cart.

Powered by initdesk
On this page
  • Using Include and Exclude Logic
  • Using Include and Exclude Logic
  • The difference between Include and Exclude
  • How to switch between Include and Exclude
  • Practical examples
  • Rule precedence