Payment Gateway Guard for WooCommercePayment Gateway Guard for WooCommerce
Show or hide WooCommerce payment methods using country, cart, product, role and shipping rules. Recently UpdatedPayment Gateway Guard for WooCommerce
Show or hide WooCommerce payment methods using country, cart, product, role and shipping rules.
Overview
Payment Gateway Guard for WooCommerce is a lightweight plugin that helps store owners show or hide existing WooCommerce payment methods only when they make sense.
Instead of adding another payment gateway, it controls the visibility of payment gateways that are already enabled in WooCommerce. You can create practical rules based on country, state, cart amount, product, category, user role and shipping method.
It is designed for stores that need simple, reliable payment method control without bloated checkout logic.
Key use cases:
- Hide Cash on Delivery for high-value orders
- Show bank transfer only for selected countries
- Hide COD for digital products or selected categories
- Show invoice-style payment only for B2B customers
- Show local payment methods only when Local Pickup is selected
- Test rules before relying on them in checkout
Features:
- Show or hide existing WooCommerce payment gateways
- Country and state based gateway rules
- Cart subtotal and cart total rules
- Product and category based rules
- User role and guest rules
- Shipping method rules, including Local Pickup
- Priority-based conflict handling
- Safe Mode to avoid accidentally removing every payment method
- Admin Test Panel for rule simulation
- Optional debug logging through WooCommerce logger
- HPOS compatible
- Classic Checkout and Checkout Block tested
- No external tracking
- No license activation system
- No payment data storage
Safe Mode:
Safe Mode is enabled by default. If your rules would remove every available payment method, the plugin restores the original WooCommerce payment gateways instead of leaving checkout with no payment method. This helps prevent accidental checkout breakage while setting up rules.
Admin Test Panel:
The included Test Panel lets administrators simulate rule matching without creating a real order. You can test country, state, cart totals, products, categories, user role and shipping method, then see which gateways remain visible and which rule made the decision.
Important notes:
- This plugin does not create a new payment gateway.
- This plugin does not process payments.
- Payment gateways must already be enabled and available in WooCommerce.
- Third-party gateways may also apply their own availability checks.
- The plugin controls gateway visibility only.
Requirements:
- WordPress 7.0 or higher
- WooCommerce 10.0 or higher
- PHP 7.4 or higher
- Administrator access to WooCommerce settings
- At least one existing WooCommerce payment gateway enabled
Tested with:
- WordPress 7.0
- WooCommerce 10.8.1
- PHP 8.3.31
- HPOS enabled and disabled
- Classic Checkout
- WooCommerce Checkout Block
Installation:
1. Download the package from Codester and extract it.
2. In WordPress admin, go to Plugins > Add New Plugin > Upload Plugin.
3. Upload payment-gateway-guard-for-woocommerce.zip.
4. Activate the plugin.
5. Go to WooCommerce > Gateway Guard.
6. Create your payment gateway visibility rules.
7. Use the Test Panel before testing on checkout.
Support:
Created by SG Group.
For support, please contact:
https://sggroup.jp/contact/
Codester profile:
https://www.codester.com/SGGro...
Features
Show or hide existing WooCommerce payment methods
Country and state based gateway rules
Cart subtotal and cart total based rules
Product and category based rules
User role and guest rules
Shipping method rules including Local Pickup
Priority-based conflict handling
Safe Mode to avoid accidentally hiding every payment method
Admin Test Panel for rule simulation
Optional WooCommerce debug logging
HPOS compatible
Classic Checkout and Checkout Block tested
No external tracking or license activation
Requirements
WordPress 7.0 or higher
WooCommerce 10.0 or higher
PHP 7.4 or higher
At least one WooCommerce payment gateway already enabled
Administrator access to WooCommerce settings
This plugin controls visibility of existing payment gateways only. It does not add new gateways or process payments.
Instructions
1. Download and extract the Codester package.
2. In WordPress admin, go to Plugins > Add New Plugin > Upload Plugin.
3. Upload payment-gateway-guard-for-woocommerce.zip from the package.
4. Activate the plugin.
5. Make sure WooCommerce is installed and active.
6. Go to WooCommerce > Gateway Guard.
7. Create a rule, choose the target payment gateway, set conditions and save.
8. Use the Test Panel to confirm which gateways will be visible before testing checkout.
9. Test checkout with your enabled WooCommerce payment methods.
Other items by this author
| Category | Plugins / WooCommerce |
| First release | 20 June 2026 |
| Last update | 20 June 2026 |
| Supported CMS | WooCommerce 9.x, WordPress 6.8 |
| Files included | .php, .css, .html, Javascript .js |
| Tags | payment gateway, woocommerce, checkout, bank transfer, cod, b2b, shipping method, hpos, checkout block, checkout rules, payment methods, user role |








