GateFlow Payment Logic

描述

GateFlow Payment Logic lets you allow or deny specific WooCommerce payment gateways based on what is in the customer’s cart. Define rules using a familiar WooCommerce-style settings tab.

For instance, you can limit payment options like Cash on Delivery, PayPal, Stripe, or other popular methods depending on specific conditions.

Features

  • Allow-only or deny mode per rule
  • Conditions: products, categories, tags, product type, cart total
  • AND logic across conditions within a rule
  • Intersection of allowed gateways across matched rules
  • Custom customer-facing message per rule
  • HPOS compatible
  • Compatible with classic Checkout and Cart/Checkout Blocks
  • Translation ready
  • Lightweight: single option storage, transient caching, lazy loading
  • Extensible: register custom conditions via gateflow_payment_logic_register_conditions

屏幕截图

安装

  1. Upload the plugin folder to /wp-content/plugins/.
  2. Activate via Plugins menu.
  3. Go to WooCommerce > Settings > GateFlow Payment Logic to add rules.

常见问题

How are multiple matched rules combined?

The plugin computes the intersection of allowed gateways across all matched rules, so the customer only sees gateways permitted by every applicable rule.

Does this plugin support all payment gateways?

It works seamlessly with several widely used payment gateways, including WooCommerce Stripe, WooCommerce PayPal Checkout, WooCommerce PayFast Gateway, Braintree for WooCommerce Payment Gateway, and others.

Can I add custom conditions?

Yes. Implement FlexiPay\Conditions\Condition_Interface and register your class via the gateflow_payment_logic_register_conditions filter.

评价

2026 年 6 月 18 日
I manage a few busy e-commerce sites, and I was constantly writing custom PHP snippets every time a client wanted to restrict a payment gateway for specific products. It was getting incredibly tedious to maintain. I installed Gateflow to see if it could handle our weird edge cases, and it completely streamlined the process. It’s exactly what an admin needs—zero bloat, does one job perfectly, and saved me hours of messing around with checkout hooks. If you manage WooCommerce stores, this is an absolute lifesaver to have in your stack.
2026 年 6 月 18 日
A very lightweight plugin and easy to use. I had a few items that needed to be paid for at my door, and the online payment gateways wasn’t active for them. I did it very easily and for free with this plugin.
2026 年 6 月 18 日
Simple, lightweight, and works exactly as described. It makes managing payment gateways based on cart contents very easy. Highly recommended!
2026 年 6 月 18 日
Hi,it’s great and solve my problem easily. Thanks
阅读所有4条评价

贡献者及开发者

「GateFlow Payment Logic」是开源软件。 以下人员对此插件做出了贡献。

贡献者

「GateFlow Payment Logic」插件已被翻译至 1 种本地化语言。 感谢所有译者为本插件所做的贡献。

帮助将「GateFlow Payment Logic」翻译成简体中文。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志

更新日志

1.0.0

  • Initial release.