=== Komplyo E-Invoicing ===
Contributors: tkabakli1
Tags: e-invoice, xrechnung, zugferd, e-rechnung, peppol
Requires at least: 6.2
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Turn completed WooCommerce orders into EN 16931 compliant ZUGFeRD / XRechnung e-invoices with Komplyo. Built for Germany's e-invoicing mandate.

== Description ==

Germany's B2B e-invoicing mandate is here: businesses must be able to **receive** structured e-invoices since 1 January 2025, and **issuing** becomes mandatory in 2027–2028. A normal PDF is no longer a valid invoice for B2B.

**Komplyo** connects your WooCommerce store to the Komplyo e-invoicing service. When an order is paid or completed, Komplyo automatically:

* generates a compliant **ZUGFeRD** (PDF + embedded XML) or **XRechnung** (UBL) document to the **EN 16931** standard;
* **validates** every invoice (VAT IDs, mandatory fields, totals) before it goes out — and verifies VAT numbers in real time against the official EU VIES service;
* gives you an email-ready hybrid PDF, with Peppol delivery available where required.

Your business details (name, VAT ID, address, IBAN) are kept once in your Komplyo profile and applied to every invoice — the system never invents data.

This plugin is the WooCommerce connector. It requires a Komplyo account (a free tier is available at https://getkomplyo.com).

= Why Komplyo =

* Dedicated to German/EU e-invoicing compliance — not a generic PDF tool.
* Correct format chosen automatically (ZUGFeRD for B2B, XRechnung where needed).
* Real-time EU VIES VAT validation — the #1 cause of rejected e-invoices.
* Light, professional, no accounting knowledge required.

== Installation ==

1. Install and activate the plugin (WooCommerce must be active).
2. Create a free account at https://getkomplyo.com and copy your API key.
3. In WordPress, go to **WooCommerce → Komplyo E-Invoice** and paste your **API key** (and Komplyo API URL if self-hosted).
4. Set your business profile (name, VAT ID, address, IBAN) in your Komplyo dashboard.
5. Done. Paid/completed orders now become compliant e-invoices automatically.

== Frequently Asked Questions ==

= Do I need a Komplyo account? =
Yes. This plugin connects your store to the Komplyo service, which generates and validates the e-invoices. A free tier is available.

= Which formats are supported? =
ZUGFeRD 2.x (hybrid PDF + XML) and XRechnung (UBL), both to the EN 16931 standard.

= Is Peppol required? =
No. For German B2B, an EN 16931 compliant invoice delivered by email is valid. Peppol delivery is available where it is required.

= Does it work with High-Performance Order Storage (HPOS)? =
Yes. The plugin declares HPOS compatibility and uses the WooCommerce order API.

= What data is sent to Komplyo? =
Only the order data needed to produce the invoice (line items, totals, buyer billing details, VAT number if present). See https://getkomplyo.com/privacy.html.

== Changelog ==

= 1.0.0 =
* First public release: automatic e-invoice generation on paid/completed orders, EN 16931 validation, HPOS compatibility, settings screen, idempotent sending, order notes.

== Upgrade Notice ==

= 1.0.0 =
Initial release.
