=== Moenco Store Connector for WooCommerce ===
Contributors: thomasmoen
Tags: woocommerce, ecommerce, analytics, reporting
Requires at least: 6.0
Tested up to: 7.0
Stable tag: 0.1.0
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
WC requires at least: 8.0
WC tested up to: 10.9

Connect a WooCommerce store to Iris by Moen & Co with one click.

== Description ==

Moenco Store Connector for WooCommerce lets customers of Moen & Co connect their WooCommerce store to Iris without manually copying WooCommerce REST API keys.

The plugin adds an Iris Connector page under WooCommerce in WordPress admin. When an authorized store administrator clicks the connect button, the plugin redirects the browser to Iris, receives a short-lived connection token, creates read-only WooCommerce REST API credentials locally, and sends those credentials to Iris to complete the connection.

This plugin requires:

* WooCommerce installed and active.
* An Iris account provided by Moen & Co.

The plugin does not send store data to Iris automatically on activation. The connection starts only after an authorized administrator clicks the connect button.

== External service ==

This plugin connects to Iris, a customer portal operated by Moen & Co, in order to register the WooCommerce store with the customer's Iris account.

Service used:

* Iris customer portal: https://kunde.moenco.no/
* Connection endpoint: https://zvqldkrsqmqanlglxole.supabase.co/functions/v1/woocommerce-plugin-connect

Data sent when the administrator starts and confirms the connection:

* Site URL.
* One-time connection state and short-lived Iris connection token.
* Generated WooCommerce REST API consumer key and consumer secret.
* Plugin version.
* WordPress version.
* WooCommerce version.

Moen & Co stores the generated WooCommerce credentials in Iris infrastructure and uses them to read WooCommerce data for reporting and advisory workflows inside Iris. The generated WooCommerce credentials are read-only.

Privacy policy: https://www.moenco.no/personvern

== Installation ==

1. Install and activate WooCommerce.
2. Install and activate Moenco Store Connector for WooCommerce.
3. Open WooCommerce > Iris Connector.
4. Click "Koble til Iris".
5. Follow the Iris sign-in and connection flow.

== Frequently Asked Questions ==

= Do I need to copy WooCommerce API keys manually? =

No. The plugin creates read-only WooCommerce REST API credentials and sends them to Iris during the approved connection flow.

= Does the plugin send data as soon as it is activated? =

No. The plugin only contacts Iris after an authorized administrator clicks "Koble til Iris".

= What permissions are used for the WooCommerce REST API credentials? =

The generated WooCommerce REST API credentials use read-only permissions.

= Do I need an Iris account? =

Yes. This plugin is intended for WooCommerce stores that use Iris by Moen & Co.

== Changelog ==

= 0.1.0 =

* Initial one-click WooCommerce connection flow for Iris customers.
