=== eCheckpoint ===
Contributors: echeckpoint
Tags: woocommerce, compliance, firearms, ffl, age-verification
Requires at least: 6.6
Tested up to: 6.9
Requires PHP: 8.1
Stable tag: 3.1.1
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Robust compliance checks for firearms eCommerce. Verifies whether your customers can purchase products based on federal, state, and local sales laws.

== Description ==

eCheckpoint provides comprehensive compliance verification for firearms, ammunition, magazines, and knives eCommerce. It validates customer eligibility based on federal, state, and local regulations before and after order placement.

**Key Features:**

* **Pre-Order Compliance Checks** - Validates customer eligibility before checkout completion
* **Post-Order Verification** - Continues compliance monitoring after order placement
* **Address Validation** - Automatic address verification and correction
* **Regional Restrictions** - Enforces state and local sales restrictions
* **FFL Dealer Integration** - Google Maps-powered FFL dealer selection for firearm transfers
* **Customer Type Support** - Supports B2C (consumer), B2B (business), and B2G (government) transactions
* **Dual Checkout Support** - Works with both Classic and Block checkout

**WooCommerce Blocks Compatible**

eCheckpoint fully supports WooCommerce's new Block-based checkout, providing the same robust compliance verification in both Classic and Block checkout experiences.

**Customizable Messaging**

Configure customer-facing compliance messages directly from the WordPress admin:

* Blocked Products message
* FFL Required message
* Additional Information Required message

== Installation ==

1. Upload the `echeckpoint` folder to the `/wp-content/plugins/` directory
2. Activate the plugin through the 'Plugins' menu in WordPress
3. Navigate to WooCommerce > eCheckpoint to configure your API settings
4. Configure your eCheckpoint API credentials
5. Set up Google Maps API key for FFL dealer mapping (optional)

== Frequently Asked Questions ==

= What is eCheckpoint? =

eCheckpoint is a compliance verification service that helps firearms retailers ensure their sales comply with federal, state, and local regulations.

= Does this work with WooCommerce Blocks checkout? =

Yes, eCheckpoint fully supports both Classic WooCommerce checkout and the new Block-based checkout.

= What customer types are supported? =

eCheckpoint supports B2C (Business to Consumer), B2B (Business to Business), and B2G (Business to Government) transaction types.

= How does FFL dealer selection work? =

When a product requires transfer through a Federal Firearms License holder, customers can select from nearby FFL dealers displayed on an integrated Google Maps interface.

== Screenshots ==

1. Compliance notice displayed during checkout
2. FFL dealer selection map
3. Admin settings page

== Changelog ==

= 3.1.1 =
* Updated post-order check to better handle excluded states

= 3.1.0 =
* Fixed styling conflicts with other WooCommerce plugins
* Improved checkout compatibility

= 3.0.0 =
* Added admin-configurable Blocked Products checkout message
* Added admin-configurable FFL Required checkout message
* Added admin-configurable Additional Information Required checkout message
* Added Block checkout shipping address change detection for compliance rechecks
* Improved product list display in compliance notices (comma-delimited format)
* Consolidated message system with centralized PHP helper methods
* Fixed notice styling alignment in Block checkout

= 2.0.0 =
* Added full WooCommerce Blocks checkout support
* React-based checkout integration
* Improved FFL dealer map integration
* Enhanced customer type selection

= 1.0.0 =
* Initial release
* Classic WooCommerce checkout support
* Pre-order and post-order compliance checks
* Address validation
* Regional restrictions enforcement
* FFL dealer selection

== Upgrade Notice ==

= 3.1.0 =
Fixes CSS styling conflicts with third-party plugins. Recommended update for sites using PW Gift Cards, Conditional Shipping, or similar plugins.

= 3.0.0 =
This update adds customizable checkout messages and improved Block checkout support. Admin settings now include message customization options.
