=== Antiro Order Risk Screening for WooCommerce ===
Contributors: abdellhadi
Tags: woocommerce, fraud, fake orders, anti-fraud, algeria
Requires at least: 5.8
Tested up to: 6.9
Requires PHP: 7.4
Stable tag: 1.0.2
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Protects your WooCommerce store from fake and fraudulent orders using AI-powered fraud detection.

== Description ==

Antiro analyzes every order in real-time using IP geolocation, device fingerprinting, VPN/proxy detection, and behavioral analysis to prevent fraudulent orders before they cost you money.

**Features:**

*   **IP Analysis** — Detects non-local IP addresses, VPN connections, Tor exit nodes, and datacenter IPs.
*   **Device Fingerprinting** — Identifies suspicious devices using browser canvas, WebGL, and hardware signals.
*   **Bot Detection** — Catches headless browsers, Selenium, Puppeteer, and other automation tools.
*   **WooCommerce Integration** — Works with both Classic Checkout and Block Checkout (WooCommerce 8+).
*   **Configurable Actions** — Block orders, flag as suspicious, or log only.
*   **Order Risk Column** — See risk scores directly in the WooCommerce orders list.
*   **Real-time Diagnostics** — Built-in connection tester and API key validator.
*   **Logging** — Detailed logs for troubleshooting.

== Installation ==

1. Upload the plugin folder to `/wp-content/plugins/`.
2. Activate the plugin through the 'Plugins' menu in WordPress.
3. Go to WooCommerce → Antiro to configure your API key.
4. Get your API key from the Antiro dashboard.

== Frequently Asked Questions ==

= How do I get an API key? =
Sign up at [antiro.io](https://antiro.io) and create a store. You will receive an API key starting with `bf_`.

= Does this work with WooCommerce Block Checkout? =
Yes, the plugin supports both Classic Checkout and Block Checkout (WooCommerce 8+).

= What happens when an order is blocked? =
The customer sees an error message (customizable in settings) and the order is not created.

= What happens when an order is flagged? =
The order is created but its status is set to "On Hold" with a risk annotation.

== Screenshots ==

1. Settings page with API key configuration and connection diagnostics.
2. Risk score column in the WooCommerce orders list.
3. Block checkout protection in action.

== Changelog ==

= 1.0.2 =
* Simplified connected state: removed diagnostics table and logs viewer.

= 1.0.1 =
* Auto-connect flow: connect to Antiro dashboard in one click.
* Auto-detection: plugin detects stores already connected on Antiro.
* Simplified settings: protection managed from Antiro dashboard.
* Removed manual API URL and action configuration.

= 1.0.0 =
*   Initial release.
*   IP analysis with VPN/proxy/Tor detection.
*   Device fingerprinting and bot detection.
*   Classic and Block Checkout support.
*   Configurable block/flag/log actions.
*   Risk score column in orders list.
*   Built-in diagnostics and logging.
