FakturFlow – Faktury KSeF (E-Invoicing for KSeF)
KSeF invoices (faktury KSeF) from WooCommerce orders: FA(3) e-invoices, corrections, PDF with QR, NIP field.
Install in
KSeF (Krajowy System e-Faktur) is Poland’s national e-invoicing system. Issuing structured invoices in it has been mandatory for large taxpayers since 1 February 2026 and for all other businesses since 1 April 2026. The last group — the smallest sellers, invoicing up to 10 000 zł gross a month — joins on 1 January 2027. If you sell to businesses through WooCommerce, your invoices have to go through KSeF.
FakturFlow sends faktury KSeF (e-faktury in the FA(3) format) straight from the WooCommerce order screen — faktura VAT, faktura korygująca, UPO and a PDF for the buyer, without an accounting subscription.
FakturFlow is a standalone plugin: it talks directly to the official Ministry of Finance API 2.0. No external accounting system, no intermediary, no per-invoice fees. Generate, validate and submit a FA(3) structured invoice straight from the order screen — one click per step.
Po polsku: FakturFlow to wtyczka KSeF dla WooCommerce. Wystawia faktury KSeF (e-faktury FA(3)) prosto z zamówienia i wysyła je bezpośrednio do Krajowego Systemu e-Faktur przez oficjalne API 2.0 Ministerstwa Finansów — bez pośredników, bez abonamentu i bez opłat za fakturę. Faktury korygujące ze zwrotów, UPO, PDF z kodem QR dla nabywcy, pole NIP w zamówieniu, faktury dla konsumentów, mechanizm podzielonej płatności. Interfejs wtyczki jest w całości po polsku.
Features
- Generate FA(3) structured invoice XML from any WooCommerce order.
- Validate against the official Ministry of Finance schema before sending.
- Submit to KSeF (test, demo and production environments) using the official API 2.0.
- Track submission status and download the UPO (Urzędowe Poświadczenie Odbioru — official proof of receipt).
- KOD I verification QR code, generated per the official Ministry of Finance specification.
- NIP field at checkout (classic and block checkout) with checksum validation — orders with a NIP are detected as B2B automatically.
- Correction invoices (faktury korygujące) from refunds — every refund gets its own KOR document referencing the original invoice by KSeF number; generate, send and download its UPO from the order screen.
- Invoice PDF for the buyer, built from the invoice exactly as KSeF holds it, with the KOD I code — attached to the order emails and downloadable from My Account (signed links for guests).
- Consumer (B2C) invoices through KSeF, if you want them: off, on request (“I want an invoice” checkbox at checkout) or for every order.
- Payment terms on the invoice: paid date or due date, payment method and your bank account.
- Split payment (mechanizm podzielonej płatności) marked automatically for annex 15 goods on B2B invoices above 15 000 zł.
- Seller address and bank account in the plugin settings, independent of the WooCommerce store address.
- Two ways to log in to KSeF: a KSeF token or a KSeF certificate (signed login, XAdES). Both are stored encrypted at rest and never logged; the certificate’s private key never leaves your server.
- HPOS (custom order tables) and checkout-blocks compatible.
- For VAT-exempt sellers (zwolnienie z VAT, e.g. art. 113): the legal basis of the exemption is printed on the invoice.
- Buyer NIP can be added or corrected on the order screen — for phone orders and typos.
- Plain-language errors: a rejected token, a duplicate invoice, a missing address or an invalid NIP are explained on the order instead of a raw schema message.
- Interface in Polish, Ukrainian and Russian (plus English).
Why FakturFlow?
- Direct connection, no middlemen. Most KSeF options for WooCommerce route your invoices through an external accounting SaaS or a vendor’s cloud. FakturFlow talks straight to the Ministry of Finance API — your invoice data never touches a third-party server.
- Free means free. No invoice limits, no per-invoice fees, no monthly subscription for the core flow. Invoicing services usually cap their free tier at a handful of invoices a month and charge monthly above it; here the full manual flow costs nothing, forever.
- One plugin, not a plugin + paid add-on. You don’t need a separate invoicing plugin as a base — KSeF is not a bolt-on here, it’s what this plugin is built around: FA(3) with local XSD validation, UPO, the KOD I verification QR, and corrections.
- Built for modern WooCommerce. HPOS, checkout blocks, a checksum-validated NIP field in both checkout variants.
- Private by design. Encrypted token and certificate storage, zero telemetry — the only server your store talks to is the Ministry’s.
Who it’s for
Any WooCommerce store that invoices Polish businesses and must comply with the KSeF mandate — without a SaaS subscription, without per-invoice fees, and without needing a separate accounting package. Consumer (B2C) invoices are optional in KSeF: by default consumer orders flow through the normal checkout untouched, and you can switch KSeF invoices for consumers on when you want them.
FakturFlow Pro (separate add-on)
When invoice volume grows, FakturFlow Pro automates the whole flow: automatic submission when an order is paid (with retries and backoff), automatic correction invoices from refunds, an offline24 mode that keeps issuing invoices when KSeF is unreachable and delivers them within the statutory deadline, and a compliance dashboard with a full audit log and CSV export. This Free plugin always covers manual generate/validate/send, corrections, UPO, the NIP field and the QR code — no functionality is ever removed to push the paid tier.
Third-party libraries
This plugin ships the following open-source runtime libraries, all GPL-compatible. They are bundled under the plugin’s own PHP namespace (FakturFlow\Vendor\), so they never clash with the same libraries bundled by other plugins:
- phpseclib/phpseclib 3.x (MIT) — RSA-OAEP-SHA256, required for the KSeF session-key handshake (PHP’s own openssl extension cannot do OAEP with SHA-256).
- chillerlan/php-qrcode (MIT) — pure-PHP QR code rendering for the KOD I verification code (no GD/Imagick requirement).
- dompdf/dompdf (LGPL-2.1) with dompdf/php-font-lib and dompdf/php-svg-lib (LGPL) — PDF rendering of the invoice for the buyer, with the bundled DejaVu Sans font (free license) for Polish characters.
- masterminds/html5 and sabberworm/php-css-parser (MIT) — dependencies of dompdf.
- paragonie/constant_time_encoding and paragonie/random_compat (MIT) — dependencies of phpseclib.
External services
This plugin connects to KSeF (Krajowy System e-Faktur), the official structured e-invoicing API of the Polish Ministry of Finance. It is required for the plugin’s core purpose: submitting structured invoices, checking their status and downloading UPO confirmations.
- What is sent: invoice data derived from the WooCommerce order (seller NIP, name and address, buyer NIP — or none for consumers — name and address, line items, amounts, VAT, payment terms and your bank account if set), and, to log in, your KSeF authentication token (encrypted for KSeF) or a login request signed with your certificate — the signed request contains the public certificate, never the private key. Data is sent only when you explicitly send an invoice or refresh its status from the order screen, or click Test connection in the settings (or when a Pro add-on triggers the same documented actions).
- Where it is sent, depending on the environment chosen in settings:
https://api.ksef.mf.gov.pl(production),https://api-demo.ksef.mf.gov.pl(demo),https://api-test.ksef.mf.gov.pl(test). - The KOD I verification QR code embeds a public verification link pointing to
https://qr.ksef.mf.gov.pl(or the matchingqr-demo/qr-testhost), per the official verification-code specification. The link is only opened when someone scans the QR code. - Service provider: Ministry of Finance of the Republic of Poland. Service information: https://ksef.podatki.gov.pl/ — the taxpayer application, with its terms and data-processing information: https://ap.ksef.mf.gov.pl/
No other external service is contacted. The invoice PDF is generated on your own server and sent to the buyer with your store’s own emails. The plugin sends no telemetry.
Written by Joobi from the project's own listing. See the source page
0.4.0
- Fix: an invoice that KSeF already has (sent or accepted) can no longer be generated or sent again. “Generate & validate” on an accepted invoice used to replace the stored file that the QR code, the PDF and corrections are built from.
- Fix: an invoice rejected by KSeF is now shown as an error straight away, with the KSeF status (for example a duplicate number), instead of “Sent”.
- Fix: when KSeF had not finished processing in time, the plugin lost the reference to the document and reported an error; a second attempt was then refused as a duplicate. The invoice is now kept as “Sent” and “Refresh status” completes it.
- Fix: “Refresh status” now fetches the KSeF number when it was not known yet. Such invoices used to become “Accepted” without a number — no QR code, no PDF, no correction.
- Fix: a failed status check no longer turns a sent or accepted invoice into an error.
- Fix: the very first KSeF token saved on a new site was stored incorrectly and rejected by KSeF until it was saved a second time.
- Fix: after changing the token, the seller NIP or the environment, the plugin kept using the previous login for up to 7 days.
- Fix: the issue date follows Polish time. Invoices issued shortly after midnight used to get the previous day’s date (and, on the 1st, the previous month’s number).
- Fix: an invoice generated on one day and sent on a later one is re-dated to the day it is sent — KSeF otherwise files it as an offline invoice issued earlier. Within the same calendar month it keeps its number; if the month has changed it gets a new number from the current month, and the unused draft number is recorded in an order note.
- Fix: the VAT rate of each line is the rate the order was actually charged. Stores with tax rates for several countries could get another country’s rate; shipping with an inherited tax class and free items were shown as VAT-exempt.
- Fix: invoices with VAT-exempt items stated that no exemption applies. They now carry the legal basis of the exemption, set in the new “VAT exemption basis” field; without it such an invoice is refused with an explanation.
- Fix: unit prices keep enough decimals to match the line total (100.00 / 3).
- Fix: orders without a billing street, and product names with special characters, no longer fail validation.
- Security: stored invoice files have unguessable names and are only ever read from the plugin’s own folder; the access rule also works on Apache 2.4. The session token is kept encrypted; KSeF error responses are logged by code only.
- New: login with a KSeF certificate (or a qualified seal / signature certificate) as an alternative to the token — choose the Authentication method in the settings. Upload the certificate and its private key (PEM, or one .p12 / .pfx file) or paste them; RSA and elliptic-curve keys are supported. Both are stored encrypted and the private key never leaves your server.
- New: a one-time notice after the update for shops that can sell without VAT and have not filled in the “VAT exemption basis” yet.
- Fix: the settings page now shows “Settings saved.” and explains a refused value (for example a bank account with a wrong checksum) instead of silently keeping the old one.
- New: buyer NIP field on the order screen, for phone orders and corrections of typos.
- New: “Test connection” also logs in with your token or certificate and says whether KSeF accepted it.
- New: the last error stays visible on the order; the order shows when an invoice was sent to the Test environment; a “First steps” guide on the settings page.
- New: Ukrainian and Russian translations.
- Change: the settings and the readme point to the current KSeF Taxpayer Application (ap.ksef.mf.gov.pl); KSeF dates in the readme updated.
- Developer:
KSEFI_Invoice_Service::ALREADY_SENT_CODE;submit()may returnpending: true; rejected documents fail withksefi_session_invoice_failedandretryable: false;ksefi_invoice_acceptedfires once per invoice;KSEFI_Ksef_Clienttakes an optional certificate;ksefi_auth_subject_identifier_typeandksefi_todayfilters.
0.3.0
- New: invoice PDF for the buyer, built from the invoice exactly as KSeF holds it, with the KOD I verification code. Attached to the “Completed order” and “Order details” emails (can be turned off), with a signed download link in the email and a download in My Account. Admins get “Download PDF” for invoices and corrections. The template can be overridden from the theme (fakturflow/invoice.php).
- New: consumer (B2C) invoices through KSeF — off (default, unchanged behaviour), on request with an “I want an invoice” checkbox at checkout, or for every order.
- New: payment terms on the invoice — paid date or due date (configurable payment term), payment method and your bank account.
- New: split payment. Mark annex 15 products; B2B invoices above 15 000 zł that include them are marked “mechanizm podzielonej płatności”.
- New: seller address, bank account and payment term in the plugin settings. On update the address is copied once from the WooCommerce store address.
- Change: the bundled libraries now use the plugin’s own namespace, so they can no longer clash with the same libraries in other plugins.
- Developer:
KSEFI_Invoice_Service::eligibility(),ksefi_payment_form_map,ksefi_pdf_localeandksefi_pdf_templatefilters.
0.2.7
- Fix: invoice numbers are now reserved under a database lock. Invoices created at the same moment (for example by the Pro auto-submit queue) could previously receive the same number.
- Fix: a number is taken from the series only after the invoice passes validation, so failed attempts no longer leave gaps. Re-generating an invoice keeps its number.
- Change: orders in currencies other than PLN and orders from buyers outside Poland are refused with a clear message instead of being sent with incomplete data. Support for both is planned.
- Fix: the buyer and seller country code is taken from the address instead of always being PL.
0.2.6
- New: redesigned settings page — Connection and Seller cards plus a Status panel that shows at a glance whether the KSeF token is saved, the seller NIP is valid, which environment is active and when the connection was last tested (with the error code if it failed). Works on mobile.
- Improved: the Polish translation now covers every string again, including the Pro section and the review request.
- Developer: new
ksefi_invoice_rejectedaction, fired when a KSeF status check reports the invoice as rejected.
0.2.5
- New: a one-time, dismissible request to leave a review on WordPress.org. It appears only a week after your first invoice is accepted by KSeF, only to shop managers and only on the plugin’s own screens. “Maybe later” snoozes it for 30 days, “Don’t ask again” hides it for good. Nothing is sent anywhere.
0.2.4
- Tested with WordPress 7.1 (verified on 7.1.1 with WooCommerce 11.1). No functional changes.
0.2.3
- New: a short FakturFlow Pro section on the settings page and a “Go Pro” link on the plugins list (both hidden automatically when the Pro add-on is active).
0.2.2
- Renamed again to resolve a follow-up wp.org review finding: “WooCommerce” is not permitted in the plugin name or slug at all, so it’s dropped from both. New slug:
fakturflow-ksef.
0.2.1
- Renamed to resolve a wp.org review trademark/slug finding (new slug:
fakturflow-ksef-and-woocommerce). Upgraded chillerlan/php-qrcode to 6.0.1 and hardened the KOD I QR output withwp_kses().
0.2.0
- Initial release: FA(3) generation with offline schema validation, direct KSeF API 2.0 submission with UPO download, order metabox and status column, checkout NIP field (classic + blocks), KOD I verification QR, correction invoices (faktury korygujące) from refunds, encrypted token storage.
Follow this listing's changes (Atom feed)