⌘ K

Search

Search portal content

Dreamfox MediaDreamfox Media
⌘ K

Search

Search portal content

Dreamfox MediaDreamfox Media
    • 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 for WooCommerce

How to work with payment gateways per category

Learn how to configure WooCommerce payment gateways per product category using include and exclude rules for a clean checkout.

How to work with payment gateways per category

Learn how to configure WooCommerce payment gateways per product category using include and exclude rules for a clean checkout.

πŸ“„ WooCommerce Product Payments – Using Payment Gateways per Category

πŸ“š Overview

The WooCommerce Product Payments plugin allows you to control which payment gateways are available per product or per product category.

Think of it as a gatekeeper at checkout: only the allowed payment methods are shown to the customer.


βš™οΈ Key Feature: Category-Based Rules

Within the plugin settings, the Categories section allows you to control payment gateways per category.


πŸ”˜ Enable / Disable Category Filtering

You can enable or disable category-based filtering for each payment gateway.

  • Enabled: Rules are applied

  • Disabled: Gateway is available for all products

πŸ“Έ Screenshot – Enable Category Filter πŸ‘‰ [Insert screenshot: toggle switch for category filtering]


βž• Include / βž– Exclude Categories per Gateway

You can define exactly which categories are allowed or blocked per payment gateway.

Important Rule:

If you include a category for one gateway, and you want it to be exclusive, you must exclude it from other gateways.

πŸ‘‰ Otherwise, the category may still appear in multiple gateways.

πŸ“Έ Screenshot – Include / Exclude Categories πŸ‘‰ [Insert screenshot: category selection UI per gateway]


🧠 How to Use It Effectively

  1. Enable category filtering for a payment gateway

  2. Include the categories that should allow this gateway

  3. For other gateways:

    • Explicitly exclude those same categories

πŸ“Έ Screenshot – Example Configuration πŸ‘‰ [Insert screenshot: one gateway include + others exclude]


πŸ§ͺ Examples

Example 1: Exclusive Payment Method

  • Category: Premium Products

  • Allowed gateway: Wire Transfer only

Setup:

  • Include β€œPremium Products” under Wire Transfer

  • Exclude β€œPremium Products” under all other gateways

πŸ“Έ Screenshot – Exclusive Gateway Setup πŸ‘‰ [Insert screenshot: Wire Transfer include + others exclude]


Example 2: Block a Gateway

  • Category: Gift Cards

  • Gateway: PayPal should NOT be allowed

Setup:

  • Exclude β€œGift Cards” under PayPal

πŸ“Έ Screenshot – Excluding a Category πŸ‘‰ [Insert screenshot: PayPal exclude setting]


πŸ”€ Cart Behavior (Important)

When customers add multiple products with different gateway rules:

You can configure how payment methods are determined:

  • Common gateways only (default) Only shared payment methods across all products are shown

  • Cheapest gateway Automatically selects the lowest-cost payment option

  • Most expensive gateway Forces the highest-cost payment method

πŸ“Έ Screenshot – Cart with Multiple Products πŸ‘‰ [Insert screenshot: checkout showing filtered gateways]


⚠️ Why This Matters

Avoid Overlapping Rules

Without proper exclusions, categories may unintentionally remain available across multiple gateways.


Keep Checkout Clean

Proper configuration prevents confusing combinations like:

  • Cash on Delivery for high-value items

  • Unsupported payment methods for specific products


πŸ“‹ Quick Recap

Setting Action Result
Enable toggle Activate category filtering Rules apply at checkout
Include category Assign category to gateway Gateway allowed for that category
Exclude category Block category for gateway Gateway hidden for that category
No exclusions Only include used May cause unintended overlap

πŸ’‘ Final Tip

If you want a payment gateway to be exclusive for a category:

πŸ‘‰ Include it for that gateway πŸ‘‰ Exclude it everywhere else

Think of it like access control:

  • Include = allow access

  • Exclude = deny access


πŸš€ Pro Tip (Support Saver)

Most issues come from:

  • Forgetting to exclude categories in other gateways

  • Misunderstanding cart behavior with multiple products

πŸ‘‰ When in doubt: check both include AND exclude settings

​

The plugin is not working

Troubleshoot a Dreamfox Media plugin that is not working by checking for theme and plugin conflicts before contacting support.

Payment Options Not Visible in Sidebar

Fix missing Payment Options in the WooCommerce sidebar by enabling Screen Options or repositioning the panel on the product edit page.

Powered by initdesk
On this page
  • How to work with payment gateways per category
  • πŸ“„ WooCommerce Product Payments – Using Payment Gateways per Category
  • πŸ“š Overview
  • βš™οΈ Key Feature: Category-Based Rules
  • πŸ”˜ Enable / Disable Category Filtering
  • βž• Include / βž– Exclude Categories per Gateway
  • 🧠 How to Use It Effectively
  • πŸ§ͺ Examples
  • Example 1: Exclusive Payment Method
  • Example 2: Block a Gateway
  • πŸ”€ Cart Behavior (Important)
  • ⚠️ Why This Matters
  • Avoid Overlapping Rules
  • Keep Checkout Clean
  • πŸ“‹ Quick Recap
  • πŸ’‘ Final Tip
  • πŸš€ Pro Tip (Support Saver)