=== Restrict Payment Methods For WooCommerce ===
Contributors: theme funda
Tags: woocommerce, payment, checkout, restrictions, conditional
Requires at least: 5.0
Tested up to: 6.9
Requires PHP: 7.4
Stable tag: 1.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Restrict WooCommerce payment gateways based on flexible conditions like totals, products, user roles, shipping methods, and more.

== Description ==

Restrict Payment Methods For WooCommerce lets you dynamically control which payment gateways appear at checkout.

Create smart conditional rules and show or hide payment methods based on cart contents, customer details, shipping options, date conditions, and more.

Perfect for improving checkout experience, preventing invalid orders, and applying business-specific payment logic.

🔗 [Documentation](https://www.codesmade.com/restrict-payment-methods-for-woocommerce-documentation/) | [Upgrade to Pro](https://www.codesmade.com/store/restrict-payment-methods-for-woocommerce/) | [Support](https://www.codesmade.com/contact-us/)

--------------------------------------------
⭐ FREE FEATURES
--------------------------------------------

- Easy installation and setup
- Create multiple restriction rules
- Enable or disable specific payment gateways
- Advanced matching logic (AND/OR conditions)
- User-friendly grouped condition builder

### Available Conditions (Free Version)

✔ Cart subtotal  
✔ Cart quantity  
✔ Specific products  
✔ User login status (logged in / guest)  
✔ User roles  
✔ Specific users  
✔ Shipping method  
✔ Billing country, state, city  
✔ Shipping country, state, city  
✔ Day of week  
✔ Date range  

--------------------------------------------
🚀 PRO FEATURES
--------------------------------------------

Upgrade to the [Pro version](https://www.codesmade.com/store/restrict-payment-methods-for-woocommerce/) to unlock advanced payment restriction controls.

### Additional Conditions Available in Pro

✔ Shipping class (shipping_class)  
✔ Product type (product_type)  
✔ Product stock status (stock_status)  
✔ Billing email (billing_email)  
✔ Shipping email (shipping_email)  
✔ Product categories (product_cat)  
✔ Product tags (product_tag)  
✔ Product brands (product_brand)  

### Why Upgrade?

- More granular checkout control  
- Advanced B2B/B2C payment logic  
- Improved fraud prevention  
- Powerful category & brand-based restrictions  
- Email-based gateway control  

👉 [Get Pro Now](https://www.codesmade.com/store/restrict-payment-methods-for-woocommerce/)

--------------------------------------------
💡 Example Use Cases
--------------------------------------------

- Show PayPal only if subtotal ≥ $50  
- Hide Cash on Delivery if cart quantity exceeds 10  
- Allow Bank Transfer only for logged-in users  
- Show Stripe only on Mondays  
- Restrict PayPal for specific billing countries  
- Hide gateways during specific date ranges  
- Apply multiple combined conditions in a single rule  

--------------------------------------------
⚙ How It Works
--------------------------------------------

1. Install and activate the plugin.
2. Go to WooCommerce → Settings → Payments Restrictions.
3. Create a rule.
4. Select payment gateway(s).
5. Add your conditions.
6. Save and test checkout.

That's it! Need help? Check out the [full documentation](https://www.codesmade.com/restrict-payment-methods-for-woocommerce-documentation/).

--------------------------------------------
📚 Documentation & Support
--------------------------------------------

- 📖 [Plugin Documentation](https://www.codesmade.com/restrict-payment-methods-for-woocommerce-documentation/)
- 🛒 [Upgrade to Pro](https://www.codesmade.com/store/restrict-payment-methods-for-woocommerce/)
- 🛠 [Contact Support](https://www.codesmade.com/contact-us/)

--------------------------------------------
Compatibility
--------------------------------------------

- Compatible with latest WooCommerce versions
- Works with most WooCommerce-compatible payment gateways
- Supports custom gateways following WooCommerce payment API

== Installation ==

1. Upload the plugin files to the `/wp-content/plugins/restrict-payment-methods-for-woocommerce/` directory, or install via the WordPress plugins screen.
2. Activate the plugin.
3. Go to WooCommerce → Settings → Payments Restrictions.
4. Configure your rules.

== Frequently Asked Questions ==

= Does this plugin work with all payment gateways? =
Yes. It supports all WooCommerce-compatible gateways.

= Can I create multiple restriction rules? =
Yes. You can create unlimited rules.

= Will it work with custom payment gateways? =
Yes, as long as they follow WooCommerce's payment API standards.

= Is it compatible with WooCommerce Subscriptions or Memberships? =
It works with most extensions that follow the standard WooCommerce checkout flow.

= Where can I find the documentation? =
Full documentation is available at: https://www.codesmade.com/restrict-payment-methods-for-woocommerce-documentation/

= How do I get support? =
You can reach our support team at: https://www.codesmade.com/contact-us/

= Is there a Pro version available? =
Yes! The Pro version includes advanced conditions like product categories, tags, brands, email-based rules, and more. Learn more at: https://www.codesmade.com/store/restrict-payment-methods-for-woocommerce/

== Screenshots ==

1. Payment restriction rules settings panel
2. Example conditional rule setup
3. Checkout page showing restricted payment gateways

== Changelog ==

= 1.0 =
* Initial release
* Flexible condition builder
* Support for user, product, shipping, and date-based conditions

== Upgrade Notice ==

= 1.0 =
Initial release.