=== Invico Connect ===
Contributors: tdvorak, tdvorakdev
Tags: woocommerce, invoicing, invoice, orders, integration
Requires at least: 5.8
Tested up to: 7.1
Requires PHP: 7.4
Requires Plugins: woocommerce
Stable tag: 0.1.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Connects a WooCommerce store to the Invico invoicing service — order sync and invoice visibility inside wp-admin.

== Description ==

Invico Connect pairs your WooCommerce store with an Invico company account so orders flow to invoicing automatically, without copying API keys by hand.

Features:

* One-click connect — approve the pairing in Invico and the plugin provisions WooCommerce REST keys for you
* Paste-a-code connect — generate a pairing code in Invico and paste it into the plugin
* Recent invoices table under WooCommerce → Invico
* Order screen "Invico" box showing the linked invoice status and a link to the public document
* Disconnect at any time; nothing is stored beyond the pairing token and the generated REST key

The plugin talks only to your configured Invico instance (default https://app.invico.org). Plan limits and invoicing rules are enforced server-side by Invico; the plugin contains no license keys or feature locks.

== Installation ==

1. Upload the `invico-connect` folder to `/wp-content/plugins/`, or install via Plugins → Add New.
2. Activate the plugin.
3. Open WooCommerce → Invico and click "Connect to Invico" (or paste a pairing code from Invico → E-shopy → WooCommerce).

== External Services ==

This plugin connects to the Invico service (https://app.invico.org) to sync WooCommerce orders for invoicing.

During pairing it sends your site URL plus a generated WooCommerce REST API key to the Invico pairing endpoint; afterwards it reads a site-scoped feed of issued invoices to show invoice status in wp-admin. No visitor data is transmitted — the connection is store-to-service only.

Terms of service: https://invico.org/en/terms
Privacy policy: https://invico.org/en/privacy

== Frequently Asked Questions ==

= Does it work without WooCommerce? =
No — the plugin exists to connect WooCommerce orders to Invico.

= Where do invoices come from? =
Invico pulls orders from your store over the WooCommerce REST API using the read/write key the plugin creates during pairing. Deleting that key or disconnecting in the plugin stops the sync.

== Changelog ==

= 0.1.0 =
* Initial release: redirect + code pairing, invoices page, order meta box.
