View Categories

Custom/Third-Party Payment Gateways Not Filtered Correctly

Table of Contents

Problem Description #

When using custom payment gateways (e.g. wallet systems, Apple Pay, custom gateways), the plugin fails to filter them, either they remain visible when they should be hidden, or they disappear completely when they should be available.

Common Symptoms

  • Payment methods (e.g. wallet, custom gateway) still show for products/categories where they were excluded. WordPress.org+1
  • Some custom gateways never appear even for allowed products.

  • Confusion especially when using multiple gateway plugins (wallet + stripe + custom) along with this plugin.

Cause

  • Each payment gateway extension may register differently in WooCommerce; the plugin may not detect or handle some non-standard gateways correctly.

  • Include/exclude logic may fail because gateway IDs or names don’t match as expected.

  • Some gateway plugins may dynamically add themselves with JS or filters that run after this plugin, causing order of operations problems.

Solution (step-by-step)

  1. Verify the exact gateway slug / ID as registered in WooCommerce → Payments. Use that slug when configuring include/exclude rules.

  2. After setting rules, clear caches and test checkout with different products to confirm behavior.

  3. For custom / third-party gateways, test behavior with only WooCommerce + gateway plugin + Payment‑by‑Product plugin active (disable other plugins/themes) to isolate conflicts.

  4. If gateway still not filtered correctly, contact the gateway plugin developer and request compatibility, or ask for help from WPFactory support. Provide gateway slug, product category, and screenshots of settings.

  5. As a workaround, if custom gateway is essential and filter fails, avoid using product-based restrictions, or apply broader rules at category/tag level for reliability.

Prerequisites

  • Awareness of exact gateway IDs/slugs.

  • Latest plugin updates for both Payment Methods plugin and gateway plugin.

Additional Notes

  • Custom gateways often require special handling; document which gateways work with product/country restrictions in your store setup docs.

  • After any payment-gateway plugin update, re‑check payment method visibility to ensure restrictions still apply.

 

Payment Methods by Product & Country for WooCommerce