Free KSeF module for PrestaShop: download and connect
In short: Is there a free KSeF module for PrestaShop? Yes. Ksefshop Invoices version 0.2.1 is a free KSeF module for PrestaShop 1.7.8, 8.x and 9.0: you download the zip from this page at no cost, and invoices reach KSeF (the Polish National e-Invoicing System) in the current FA(3) structure through the KSeF 2.0 API. When PrestaShop issues the invoice for a paid order with a Polish buyer NIP (tax identification number), the module passes the order to the Ksefshop service. The service issues an FA(3) invoice in KSeF under the PrestaShop invoice number and returns the KSeF number and a PDF with a QR code. A credit slip becomes a correction invoice. You can download the module now; you open a service account yourself, no invite code needed. Other options (a paid module from Addons, invoicing software, a module from GitHub) are compared in the table below.
Download the free KSeF module for PrestaShop (.zip) · version 0.2.1 · PrestaShop 1.7.8, 8.x, 9.0 · PHP 7.4 or newer
What the KSeF module for PrestaShop does
PrestaShop on its own issues only a PDF invoice. Since 2026 an invoice for a business is an XML file in the FA(3) structure with a KSeF number, so the store needs an add-on. A wider comparison of modules, invoicing software and integrations is in KSeF for PrestaShop. Our module works like this:
- Invoice when PrestaShop issues it. When an order reaches a status that creates the invoice (for example "Payment accepted"), the module sends it to the service. The service builds the FA(3) invoice, sends it to KSeF with your certificate or token and returns the KSeF number and a PDF with a QR code.
- One number per sale. The invoice in KSeF carries the PrestaShop invoice number (for example #FA000123), so the customer never gets two documents with different numbers.
- Correction on a refund. A credit slip, partial or full, becomes a correction invoice (faktura korygująca) under the credit slip number.
- Only orders with a NIP. Orders with a valid Polish NIP in the invoice address go to KSeF. Consumer orders without a NIP are not sent.
- NIP field in the Polish address form. If the form has no NIP field, the module adds the Company and NIP fields with one button and validates the NIP checksum.
- Warnings about PrestaShop settings. The configuration page warns when invoices are off, when numbering restarts every year without the year in the number (KSeF rejects duplicates) and when the invoice prefix differs between languages.
- Status on the order and in the customer account. The back office order page shows the KSeF status, invoice number, KSeF number, PDF and the "Refresh status" and "Send to KSeF" buttons. The customer gets a PDF link in their account.
- Nothing is lost during an outage. If the service or KSeF does not respond, the document waits in a queue and is resent automatically. Statuses come back through a signed webhook, and there is an optional cron URL for stores with no back office traffic.
Your KSeF certificate and token are not stored in the shop, only in the Ksefshop service. Ksefshop is an independent service, not affiliated with the Polish Ministry of Finance.
Who the module is for
- A store on PrestaShop 1.7.8, 8.x or 9.0 that sells to businesses and must issue their invoices in KSeF.
- A store that wants to keep PrestaShop invoice numbering and credit slips instead of moving invoicing to separate software.
- A store that prefers not to keep a KSeF certificate in the shop database.
If you also sell on Allegro or other channels and invoice everything in one program, first read the comparison in online store KSeF integration.
KSeF modules for PrestaShop compared (as of 28.10.2026)
Below are the routes to KSeF for a PrestaShop store that we could check in public sources. This is not a ranking or a recommendation, only a description based on the vendors' own pages. We have not installed other vendors' modules, and features and prices may change. The first row is our module.
| Solution | Who sends the invoice to KSeF | FA(3) and KSeF 2.0 | Price model (per vendor) | Corrections | Source |
|---|---|---|---|---|---|
| Ksefshop Invoices 0.2.1 (ours) | the Ksefshop service; the module passes the order, the service builds FA(3) and sends it to KSeF with the company's certificate or token | yes, FA(3) through the KSeF 2.0 API | module free; service in early access, open sign-up | yes, a credit slip creates a correction invoice with the KSeF number of the original invoice | this page, module manual |
| KSeF 2.0 - Poland's e-Invoice System Integration (PrestaShop Addons, module 96702) | the module itself, in the store | KSeF 2.0 in the name and description; listing as of 19.10.2026: version 1.3.11 of 17.04.2026, PrestaShop 1.7.0 to 9.1, token, signed XML or certificate | paid licence for one store with a year of support; the price is on the Addons listing | yes, correction invoices on returns (per the listing as of 19.10.2026) | PrestaShop Addons |
| Fakturownia, PrestaShop module | Fakturownia; the module moves orders into the program, which sends invoices to KSeF manually or automatically | KSeF integration in the program; export of invoices to KSeF XML in the FA(3) schema | module bought in the PrestaShop Marketplace (current plugin for PrestaShop 1.7.0.0 to 8.1.0) plus a Fakturownia subscription; the KSeF integration is free in every plan | the module help does not describe corrections from refunds | Fakturownia help: PrestaShop, Fakturownia: KSeF, Fakturownia: apps |
| iFirma, PrestaShop integration | iFirma; checks buyer data in GUS (the national business register) and sends invoices to KSeF automatically | per the page, invoices follow the latest structured invoice format | up to 100 orders a month in the Faktura+ package at no extra charge, above 100 orders PLN 41.50/month; 30-day trial | the integration page does not describe corrections | iFirma: PrestaShop integration |
| inFakt, wFirma (through Base) | the invoicing program; Base connects to PrestaShop through the store API, without a module, and passes documents to the program | inFakt: all issued invoices go to KSeF; wFirma: the invoice is sent to KSeF straight away according to the integration settings, corrections too | Base subscription plus the program's subscription | wFirma: corrections sent to KSeF; inFakt: not described | Base: PrestaShop and wFirma, inFakt: program do KSeF, wFirma: integracja z KSeF |
| SoftwarePizza/ksef (GitHub) | the module itself, in the store | no: the README states FA(2), and the code refers to the FA(2) schema and KSeF 1.0 API addresses (ksef.mf.gov.pl/api) | free, described as open source; the repository has no licence file | the README does not describe corrections | GitHub: SoftwarePizza/ksef |
How to read this table:
- FA(2) and KSeF 1.0 are no longer enough. The FA(2) structure was used from 1 September 2023 to 31 January 2026, and tokens from the old KSeF 1.0 do not work in KSeF 2.0 (MF FAQ, category "Uprawnienia i autoryzacja", question 35). The GitHub module is version 1.0.0 and its README calls it a development version. The repository was created on 10 December 2025, and the latest changes of 8 and 15 October 2026 touch helper files (workflows, fonts), not sending to KSeF. More on the differences: FA(3) schema.
- Module in the store or invoicing software. The Addons module sends invoices straight from the store and usually keeps the KSeF credentials in the store. Invoicing programs send to KSeF themselves, so all the company's invoices are in one place. Our module sits in between: the invoice keeps the PrestaShop number, and the certificate or token is stored in the service, not in the store database.
- We could not open the PrestaShop Addons listing on 28.10.2026 (the catalogue blocks automated page fetching), so this module's data is as of 19.10.2026. More about it and about invoicing software in KSeF for PrestaShop.
Requirements
| Item | Requirement |
|---|---|
| PrestaShop | 1.7.8, 8.x or 9.0 (we tested on 1.7.8, 8.2 and 9.0) |
| PHP | 7.4 or newer, with the cURL extension |
| PrestaShop invoices | enabled (recommended), or Ksefshop numbering when invoices are off |
| Account | an account in the Ksefshop cabinet (early access, open sign-up) |
| KSeF access | your company's KSeF certificate or token; KSeF TEST is enough for testing |
Installation in 6 steps
- Download the file. Save ksefshop-invoices-prestashop.zip. Do not unzip it.
- Upload the module. In the PrestaShop back office go to Modules > Module Manager, click "Upload a module" and choose the zip. The module Ksefshop Invoices appears in the list. Click "Configure".
- Create an account and get an API key. In the Ksefshop cabinet you create your company and receive a test key. Details are in the next section.
- Connect the module to the service. Enter
https://app.ksefshop.plin "API URL", paste thesk_test_...key in "API key" and click "Save". - Test the connection to KSeF TEST. Click "Test connection". The module shows the KSeF environment, the seller and whether the KSeF login works.
- Place a test order. Order something with a Polish NIP in the invoice address, set the status to "Payment accepted" and check the KSeF block on the order.
Each step is described in more detail below.
How to create an account and get an API key
The Ksefshop cabinet is at app.ksefshop.pl/panel, in Polish and English (switch the language in the menu). You sign in with a link sent by e-mail, without a password.
1. Sign up
Sign-up is open, no invite code is needed:
- Open app.ksefshop.pl/panel/signup.
- Enter your company "Email address". The partner code field is optional, you can leave it empty.
- Click "Send link".
2. Confirm your e-mail address
You receive a link. It works for 15 minutes and only once. No message? Check your spam folder. Open the link and click "Sign in". The cabinet takes you to the company details form.
3. Company details
The "Company details" go on every invoice, so enter them exactly as in CEIDG or KRS (the Polish business registers):
- NIP (tax id) of your company. The NIP cannot change once the company is created: a different NIP means a new company in the cabinet. The details are not yet filled in automatically from the MF white list, you type them in.
- Full company name, Street and number, Postcode and city, optionally Place of issue.
- Where orders will come from: choose "PrestaShop (module)". Optionally enter the Store address.
- Invoice number pattern and Correction number pattern (by default
FV/{YYYY}/{MM}/{N}andFVK/{YYYY}/{MM}/{N}). With PrestaShop numbering, which we recommend, the KSeF invoice gets the PrestaShop invoice number anyway. The patterns matter if you choose Ksefshop numbering in the module.
Click "Create company".
4. Test key
Once the company is created, the cabinet shows the "API address" and the "Test key" (it starts with sk_test_). The key is shown only once, copy it right away. If you lose it, create a new one under "Stores and API keys": enter a "Key name", choose the mode "Test (KSeF TEST)" and click "Create key". You can revoke the old key there. A test key sends invoices to KSeF TEST, without legal effect. Click "Next: connect to KSeF".
5. KSeF connection
Under "KSeF connection" you enter the KSeF credentials for the selected store and mode. The page shows the seller NIP, the environment (test or production) and the connection status. You have three options:
- KSeF certificate: upload "Certificate (.crt)" and "Private key (.key)", enter the "Key password" and click "Save certificate". How to generate one: KSeF certificate: how to generate it.
- KSeF token: paste it into "KSeF token" and click "Save token". How to create one: KSeF token.
- Quick test: in test mode the "Connect with a test certificate" button connects the store to KSeF TEST with a certificate we generate. It works only on KSeF TEST.
After saving, reload the page in a moment. The status should change to "connected". The private key and token are encrypted before they are stored and never go back to the browser. Which permissions to give the app, and which not: KSeF permissions for a store app.
On the cabinet "Dashboard", the "First steps" list shows what is done: company details, KSeF connection, store connected with an API key and first invoice accepted by KSeF.
Configuring the module in PrestaShop
Open Modules > Module Manager > Ksefshop Invoices > "Configure". The "Connection and invoices" section has these fields:
| Field | What to enter |
|---|---|
| API URL | https://app.ksefshop.pl |
| API key | the sk_test_... key from the cabinet (later sk_live_...); once saved the field may stay empty and the key is kept |
| Invoice numbers | "PrestaShop invoice and credit slip numbers (recommended)": the order goes to KSeF when PrestaShop issues its invoice. "Ksefshop numbers": only when PrestaShop invoices are off; the order goes once it is paid and the service assigns the number |
| Buyer NIP field | "VAT number of the invoice address" (default) or "Identification number (DNI) of the invoice address" |
| E-mail the KSeF PDF to the buyer | "No" by default: the buyer's e-mail is not sent to the service, and the PDF link is in the customer account |
Click "Save". The module passes the numbering mode to the service and registers a signed webhook for status updates. Then:
- Click "Test connection". A good result is "Connected. KSeF environment: ..." with the seller name and "KSeF login works.". If the module says the KSeF login is not configured yet, go back to "KSeF connection" in the cabinet.
- If the page warns that the Polish address form has no NIP field, click "Add NIP to the Polish address form".
- Read the other warnings on the configuration page. In PrestaShop's invoice settings, enable invoices, use one prefix for all languages, and if numbering restarts every year, enable "Add current year to invoice number". Why this matters: connect PrestaShop to KSeF.
Optionally the configuration page shows a cron URL with a secret token. Call it every 5 to 15 minutes only if the store has neither back office visits nor webhooks. In normal operation you do not need it.
First test order
- Place an order in the store as a business: invoice address in Poland, company name and a valid NIP. On KSeF TEST the invoice has no legal effect, but the NIP must be valid because the module checks its checksum.
- In the PrestaShop back office set the order to a status that issues the invoice, for example "Payment accepted".
- Open the order. The KSeF block shows the status (for example "Queued for KSeF", then "Accepted by KSeF"), invoice number, KSeF number and a PDF link. Invoices made with a test key are marked TEST. The "Refresh status" button fetches the latest state.
- In the Ksefshop cabinet open "Invoices" (app.ksefshop.pl/panel/invoices). You see the number, order, amount, status and KSeF number, and the PDF for accepted invoices.
- Also check an order without a NIP: it should not go to KSeF, and the block on the order explains why.
A full list of test scenarios is in KSeF test environment.
What happens on a refund
When you tick generating a credit slip during a partial or full refund, the module sends it to the service. The service issues a correction invoice in KSeF under the credit slip number, referring to the KSeF number of the original invoice. The correction appears on the order and in the customer account like the invoice. A refund without a credit slip does not create a correction. Rules: KSeF correction invoice for returns.
Module limitations
- A credit slip with an amount but no quantities: issue that correction manually.
- VAT rates other than 23, 8, 5 and 0% and exempt sales ("zw") are not sent automatically.
- Only the first PrestaShop invoice of an order is sent. Changes to the order after the invoice are not sent again.
Going to production
After testing you switch the store to production KSeF:
- In the cabinet header change "Mode" to "Live".
- Under "KSeF connection" upload a certificate or token generated on production KSeF. Credentials from KSeF TEST do not work in production.
- Under "Stores and API keys" create a key in "Live" mode (it starts with
sk_live_). - In the module configuration paste the new key, click "Save" and "Test connection". The result should show the production KSeF environment.
During early access live mode is not switched on yet: the cabinet shows it as "Live (soon)", and live keys start working once it is enabled.
What data the module sends to the service
Order number, dates, currency, payment method, buyer company name, NIP and address, product names, references, quantities, gross prices and VAT rates, discounts and shipping. The buyer's e-mail only when the PDF e-mail option is on. No customer IDs, phone numbers or IP addresses. Nothing is sent before an API key is saved.
Early access
You can download and install the module now and create your Ksefshop cabinet account yourself at app.ksefshop.pl/panel/signup, no invite code needed. Questions: kontakt@ksefshop.pl.
Download the free KSeF module for PrestaShop (.zip)
Frequently asked questions
How much does the KSeF module for PrestaShop cost?
The module is free. During early access the service is free as well, and testing on KSeF TEST is free with no limit. Paid plans come later; they are described in the pricing section on the home page.
Does the free KSeF module from GitHub support FA(3)?
As of 28.10.2026, no. The SoftwarePizza/ksef module states the FA(2) structure in its README, and its code uses KSeF 1.0 API addresses. Since 1 February 2026 invoices are issued in FA(3) through KSeF 2.0, so such a module needs rework before use. See the comparison table above.
Is the module on PrestaShop Addons?
Not yet. We are preparing it for the PrestaShop Addons catalogue. Until then you download the zip from this page and upload it through the module manager.
Does the module issue invoices to consumers?
No. Only orders with a valid Polish NIP in the invoice address go to KSeF. Invoices for consumers can be issued outside KSeF: KSeF invoices for consumers.
Will the customer get two invoices?
No. The invoice in KSeF carries the PrestaShop invoice number, so it is the same document.
Does it work with multistore?
Yes. Each shop connects to the Ksefshop cabinet with its own API key.
What does uninstalling remove?
The module's table and settings in the shop. Invoices sent to KSeF stay in KSeF and in your Ksefshop account.
This article is general information and not tax advice.
Sources
- Ksefshop Invoices 0.2.1 user guide (
docs/readme_en.pdfin the module archive) - KSeF implementation stages (Ministry of Finance, in Polish)
- Pytania i odpowiedzi KSeF 2.0 (MF FAQ): category "Uprawnienia i autoryzacja", question 35
- Module comparison (as of 28.10.2026): GitHub: SoftwarePizza/ksef, PrestaShop Addons: KSeF 2.0 (listing as of 19.10.2026), Fakturownia help: PrestaShop, Fakturownia: KSeF, iFirma: PrestaShop integration, Base: PrestaShop and wFirma, inFakt: program do KSeF, wFirma: integracja z KSeF
- PrestaShop 8 documentation: Invoices, Credit slips
As of 28 October 2026.