A. Install
- Install the KSeF Connect app on your Stripe account (from the Marketplace or from an install link you received).
- After install, Stripe opens the app's settings screen. You can also find the app under the Apps menu in the Stripe Dashboard.
B. Get a KSeF credential
You need one of two ways to authenticate with KSeF. We recommend a certificate — tokens stop working at the end of 2026.
Option 1 (recommended): KSeF certificate
- Sign in to the Ministry of Finance's KSeF application (production: ksef.podatki.gov.pl; for testing use the demo environment).
- Generate a certificate for your entity. You'll receive a certificate file (.crt or .pem), a private key file (.key), and a password protecting the key.
- Keep all three — you'll need them in step C.
KSeF v2 certificates use an ECDsa (P-256) key. The App accepts .crt + .key files with a password — no .p12 file is needed.
Option 2: authorization token
- In the KSeF taxpayer application, generate an authorization token for your NIP.
- Copy the token — you'll paste it into the app settings (step C).
KSeF tokens stop working on 31 December 2026. A certificate is required from 2027. If you're starting now, choose a certificate.
C. Configure in the app (Stripe → Settings)
- Choose the KSeF environment — Test (demo) for trials, or Production for real invoices.
- Choose the authentication method — Certificate (recommended) or Token.
- For a certificate, click "Open upload window". A separate tab opens on our server (Stripe can't accept these file types inside the app window). Upload the certificate file (.crt/.pem), the key file (.key), enter the password, and submit. The settings view refreshes automatically once the upload completes.
- Fill in seller details — enter your NIP and click "Fetch from CEIDG" to auto-fill the name and address (for sole proprietors). Companies fill this in manually.
- Set the submission trigger — on finalization, on payment, or manual — and choose whether to write the KSeF reference into the Stripe invoice metadata.
- Click "Test connection" to confirm your credentials work.
D. Day-to-day use
- Once configured, invoices are submitted to KSeF according to your chosen trigger.
- The app home page shows counts by status and a list of invoices needing attention, with the option to retry failed submissions.
- For each invoice you can download the UPO (KSeF confirmation) and the generated FA(3) XML file.
E. Troubleshooting
- Invoice "skipped": most often a missing buyer NIP (a B2C invoice). KSeF only handles B2B invoices.
- Authentication / certificate error: check that you uploaded the correct certificate and key with the right password, and that the selected environment (Test/Production) matches the certificate.
- Incorrect seller details: fill in the NIP and address; companies should enter the data manually.
- Switching environments: after switching between Test and Production, run "Test connection" again.
Contact
Need help? Email support@ksef-connect.pl.
Last updated: 29 May 2026