=== Beep Conditional Payments for WooCommerce === Contributors: beepcoder, sarwarz Author URI: https://beepcoder.com/ Donate link: https://beepcoder.com Plugin URI: https://wordpress.org/plugins/beep-conditional-payments Tags: woocommerce, payments, conditional payments, checkout, payment gateways Requires at least: 5.8 Tested up to: 6.8 Requires PHP: 7.4 Stable tag: 1.0.2 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html Control WooCommerce payment methods with flexible rules. Enable, disable, or add fees based on order, products, or customers. == Description == **Beep Conditional Payments** lets you show or hide WooCommerce payment gateways at checkout depending on conditions you define. You can also add extra fees for specific scenarios (Pro version). Easily build rules like: * Enable *Bank Transfer* only for orders above $100. * Disable *Cash on Delivery* for digital products. * Add a $5 fee when a coupon is applied (Pro). * Show different payment methods depending on user roles or location. ### Why use Beep Conditional Payments? - Save time managing payment options. - Prevent unwanted gateways from appearing. - Apply smart business logic without code. - Create unlimited rulesets. --- ### Free Features * Unlimited conditional **rulesets** * Enable or disable WooCommerce payment gateways * Export & Import rulesets (JSON) * Duplicate or delete rulesets * Conditions supported: - Order subtotal - Shipping method - Products (include / include only / exclude) - Billing fields (first name, last name, company, state, country, email, phone) - Shipping fields (first name, last name, company, state, country, postcode) - Customer logged-in status - Customer role --- ### Pro Features All Free features **plus**: * Add **extra checkout fees** * Advanced conditions: - Number of items in cart - Coupon applied (include / exclude) - Product categories, tags, brands, product types, shipping classes - Stock status (in stock / out of stock) - Customer previous orders count - Customer IP address - VAT exempt status - Day of the week (Mon–Sun) - Time of the day (HHMM 24h format) - Date range (start → end) * Premium support & updates --- == Screenshots == 1. Plugin Settings - Manage Payment Condition 2. Plugin Settings - Add New Condition 3. Plugin Settings - All Predifine Condition 4. Plugin Settings - All Predifine Action == Installation == 1. Upload the plugin files to `/wp-content/plugins/beep-conditional-payments/`, or install via WordPress **Plugins → Add New**. 2. Activate the plugin. 3. Go to **WooCommerce → Settings → Conditional Payments**. 4. Click **Add Ruleset** to create your first rule. == Frequently Asked Questions == = Where do I find the settings? = Go to **WooCommerce → Settings → Conditional Payments**. = Can I export/import my rules? = Yes. Use the **Tools** section to download or import JSON rules. = Will this work with third-party gateways? = Yes, it works with all WooCommerce payment gateways. = How do I upgrade to Pro? = The Pro version unlocks advanced conditions (categories, coupons, roles, date/time, etc.). Visit [beepcoder.com](https://beepcoder.com) for details. == Screenshots == 1. Rulesets overview page with enable/disable toggle. 2. Rule editor – add conditions and actions. 3. Tools section – export/import rulesets. 4. Example checkout with hidden payment methods. == Changelog == = 1.0.1 = * Code improvements: added sanitization/escaping for all inputs/outputs. * Updated AJAX handlers with nonce and input validation. * Ensured WordPress.org coding standards compliance. * Improved security and stability. = 1.0.0 = * Initial release. * Add rulesets with conditions and actions. * Enable/disable WooCommerce payment methods. * Export & Import rulesets. * Duplicate and delete rules. == Upgrade Notice == = 1.0.1 = Security and code quality improvements. Please update to ensure compliance with WordPress coding standards. = 1.0.0 = First release of Conditional Payments for WooCommerce. Create flexible rules to control checkout payment methods.