=== Beep Conditional Payments ===
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.9
Requires PHP: 8.0
Stable tag: 1.0.3
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 helps WooCommerce stores control which payment gateways are shown at checkout using flexible, no-code conditions.

Use it to create smart checkout logic, improve payment success, and keep your payment options relevant to each order.

### Free Features

* Unlimited rulesets for payment gateway visibility.
* Enable or disable specific gateways at checkout.
* Condition-based rules for cart, customer, location, shipping, and coupons.
* JSON export/import, duplicate, and delete tools.
* Works with standard WooCommerce payment gateways.

### Available Conditions in Free Version

* Cart totals: subtotal, total, min/max range, line item count.
* Products in cart: specific products/variations, categories, tags.
* Customer context: logged-in/guest, user roles.
* Address context: billing/shipping country and state, checkout address fields.
* Shipping method selected at checkout.
* Coupon checks: applied/not applied, coupon code, coupon amount, coupon type.

### Pro Features

The Pro edition includes everything in Free, plus:

* Payment method fees.
* Advanced conditions (date/time, stock, order history, GeoIP, subscriptions, and more).
* Additional targeting and advanced rule controls.
* Priority support and faster feature updates.

Upgrade to Pro: [https://beepcoder.com/plugins/beep-conditional-payments](https://beepcoder.com/plugins/beep-conditional-payments)

### Why Store Owners Use Beep Conditional Payments

* Show the right gateways for the right orders.
* Remove irrelevant payment options to reduce confusion.
* Build checkout logic without custom code.
* Keep your payment flow clean and conversion-focused.


== 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 → Payments**, then open the **Conditions** section.  
4. Click **Add Ruleset** to create your first rule.  

== Frequently Asked Questions ==

= Where do I find the settings? =  
Go to **WooCommerce → Settings → Payments** and choose **Conditions** (next to General).

= 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? =  
Pro adds payment method fees and advanced condition controls.  
Upgrade here: [https://beepcoder.com/plugins/beep-conditional-payments](https://beepcoder.com/plugins/beep-conditional-payments)

== 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.3 =
* Improved rule builder operator handling so each condition shows the correct operators reliably.
* Updated admin UI styling for a cleaner, more professional rules management experience.
* Redesigned the Pro upgrade modal with branded visual support (custom logo via `admin/images/icon-256x256.png`).
* Updated plugin metadata and readme for WordPress.org compatibility and release consistency.

= 1.0.2 =
* Moved settings to **WooCommerce → Settings → Payments → Conditions** (with redirect from the old standalone tab URL).

= 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.3 =
Pro upgrade dialog uses a branding image instead of the old discount tile; optional custom logo via `admin/images/icon-256x256.png`.

= 1.0.2 =
Settings now live under Payments → Conditions. Old bookmarks to the previous tab redirect automatically.

= 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.

