=== Invoice Bridge for WooCommerce ===
Contributors: invoicebridge
Tags: woocommerce, invoice, e-invoice, peppol, slovakia
Requires at least: 6.0
Tested up to: 7.1
Stable tag: 2.0.3
Requires PHP: 8.2
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Issue invoices and Slovak e-invoices (Peppol) for WooCommerce orders through the Faktúry online API with one click, with no invoice limit.

== Description ==

**Invoice Bridge for WooCommerce** connects your WooCommerce store with the Slovak invoicing service [Faktúry online](https://www.faktury-online.com/). From the order screen you create the invoice in your Faktúry online account with one click, download its PDF and send it as an e-invoice (Peppol).

The plugin interface is in Slovak, because Faktúry online and the e-invoicing obligation target businesses in Slovakia.

> **Notice:** This is not an official plugin or product of Faktúry online and it is not developed in cooperation with, or supported by, ISSET, s.r.o. (the operator of Faktúry online). It is a third-party solution that uses the Faktúry online API. You need your own Faktúry online account.

= Features =

* Create the invoice from the order screen with one button, with **no limit on the number of invoices**
* Duplicate protection: before creating, the plugin checks whether an invoice for the order already exists in Faktúry online
* "Reload invoice data" and "Issue a new invoice" actions (the original invoice stays; cancel it with a credit note)
* Invoice PDF from the order screen. The PDF is never stored on your hosting; it is streamed from the Faktúry online API
* Settings for document type, due date, style, language, QR code (Pay by square), rounding, notes and customer contact data
* VAT payer / non-VAT payer mode and test mode (apitest)
* **Slovak e-invoicing (Peppol) from 1 January 2027:** validate the e-invoice before sending (nothing is sent and no credit is used), send it through the Faktúry online API and follow its status until it is delivered to the buyer. B2B orders (buyer VAT ID / tax ID) are marked in the order screen
* Readiness checklist for mandatory e-invoicing
* HPOS (High-Performance Order Storage) compatible

= Optional PRO add-on =

Stores that want to automate invoicing can use the separate paid add-on **Invoice Bridge PRO** (subscription, [invoice-bridge.com](https://invoice-bridge.com/#pricing)): automatic invoice on order, payment or status change, credit notes on refunds, automatic sending of B2B e-invoices with delivery tracking, invoice link in customer e-mails, a retry queue and courier CSV exports. This plugin works fully without it.

*WooCommerce® is a registered trademark of Automattic Inc. Invoice Bridge is not affiliated with or endorsed by Automattic.*

= Requirements =

* WooCommerce
* A [Faktúry online](https://www.faktury-online.com/) account — API e-mail, API key and supplier ID (d_id)
* For e-invoices: the E-faktúra service activated in your Faktúry online account and Faktúry online selected as your intermediary on the Slovak Financial Administration portal

= Responsibility =

The plugin is a technical tool: it transfers order data to Faktúry online and, on your instruction, asks Faktúry online to issue and send documents. You are the issuer of the documents — check every document and the status of every e-invoice. The plugin does not replace an accountant or tax advice.

== Installation ==

1. Go to *Plugins → Add New*, search for "Invoice Bridge for WooCommerce", install and activate it
2. Open *WooCommerce → Invoice Bridge*
3. Enter the API e-mail, API key and supplier ID (d_id) from your Faktúry online account
4. Try issuing an invoice in test mode, then switch test mode off
5. On an order screen, click *Vytvoriť faktúru* (Create invoice)

== Frequently Asked Questions ==

= Where do I find the API key? =

Log in to [Faktúry online](https://www.faktury-online.com/) → Settings → API. Copy the API key and the supplier ID (d_id).

= Is the number of invoices limited? =

No. This plugin has no limit and no trial period. Only the pricing of your Faktúry online account applies.

= Does the plugin create invoices automatically? =

No. In this plugin you create the invoice with a button on the order screen. Automatic invoicing, credit notes and the e-mail link are provided by the optional paid add-on Invoice Bridge PRO.

= Does the plugin store invoices on my server? =

No. The PDF is loaded from the Faktúry online API and streamed to the browser. No PDF is stored on your hosting.

= Is the plugin ready for mandatory e-invoicing in Slovakia from 1 January 2027? =

Yes. Invoices created through the API are not sent to the Peppol network automatically, so the plugin sends them through the Faktúry online API (`peppol-send`) with the *Odoslať e-faktúru* (Send e-invoice) button and shows the status (`peppol-status`) until delivery. Faktúry online converts the document to the e-invoice format and hands it over to the digital postman. This is not legal or tax advice.

= Is this an official Faktúry online product? =

No. It is a third-party solution that uses the Faktúry online API. It is not developed or supported by Faktúry online.

= Does it work with HPOS? =

Yes. The plugin supports both classic order storage and HPOS.

== External services ==

This plugin connects to one external service only:

**Faktúry online API** (`https://www.faktury-online.com/api/`, operated by ISSET, s.r.o.; [API documentation](https://www.faktury-online.com/faktury-online-api/manual), [e-invoice API](https://www.faktury-online.com/faktury-online-api/manual-efaktura), [terms of use](https://www.faktury-online.com/podmienky-pouzivania))

* It is used to create invoices, to check whether an invoice for an order already exists, to load the invoice PDF and to validate, send and check the status of e-invoices (Peppol).
* When an invoice is created, the plugin sends: the API e-mail and API key (authentication), the supplier ID, customer data from the order (name/company, address, company ID / tax ID / VAT ID; e-mail and phone only if you enable it in the settings), line items with prices and VAT, the order number, currency and document settings.
* When a PDF is downloaded or an e-invoice action is used, the API credentials and the internal invoice code are sent.
* Requests are sent only when the store administrator creates or reloads an invoice, opens a PDF or uses the e-invoice buttons.

The plugin contacts no other server (no license server, no tracking).

== Screenshots ==

1. Settings — API connection and invoice settings
2. Order screen — create invoice, PDF and e-invoice status

== Changelog ==

= 2.0.3 =
* Settings: license data stored by the optional add-on (status, expiry, consent) is no longer overwritten by the previously saved values

= 2.0.2 =
* E-invoice section: for consumers and foreign buyers the send buttons are hidden (the customer gets the PDF); still reachable if the buyer's tax ID is stored under an unknown checkout field

= 2.0.1 =
* Settings helpers used by the optional PRO add-on (invoice trigger on any order status, e-mail button colour)
* Test mode: e-invoices are only validated, never sent to Peppol
* Clearer settings: card numbering, where automatic invoicing lives

= 2.0.0 =
* Fully functional without a license and without any limit: invoices are issued from the order screen
* Removed the monthly limit and all license code; the plugin connects to the Faktúry online API only
* E-invoicing (Peppol): validate, send and track delivery through the Faktúry online API
* Automation, credit notes, e-mail link and courier exports moved to the separate Invoice Bridge PRO add-on
* Declared HPOS compatibility
* Minimum PHP version 8.2

= 1.1.0 =
* Delivery date set from the order state (e-invoicing 2027)
* Default rounding to 5 cents

= 1.0.0 =
* First release

== Upgrade Notice ==

= 2.0.0 =
Invoices are issued from the order screen with no limit. Automatic invoicing and more are available in the optional Invoice Bridge PRO add-on.
