=== FLIZpay Gateway für WooCommerce ===
Contributors: Flizpay
Tags: kostenlos, payments, Zahlung, discount, no-fee
Requires at least: 6.4
Tested up to: 7.0
Stable tag: 2.6.0
Requires PHP: 8.2
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.txt

Senke deine Zahlungskosten. Belohne deine Kunden. Behalte mehr von jedem Verkauf.

== Description ==
FLIZpay ist eine Zahlungsmethode aus Deutschland, mit der Unternehmen ihre Zahlungskosten deutlich senken und diese Ersparnis in Wachstum verwandeln können. Mit dem FLIZpay-Plugin fügst du FLIZpay schnell und ohne technisches Vorwissen zu deinem WooCommerce-Checkout hinzu.

Im aktuellen Preismodell zahlen 90% der Unternehmen keine Transaktionsgebühren. Größere Händler können ihre Gebühren im Vergleich zu anderen Zahlungsmethoden um mindestens 50% senken. Du kannst die Ersparnis behalten oder einen Teil davon für Cashback und Rabatte einsetzen, um Conversion und Kundenbindung zu stärken.

Das WooCommerce-Plugin selbst ist kostenlos. Für die Nutzung benötigst du ein separates FLIZ-Business-Konto; für den FLIZpay-Service gelten die Konditionen deines FLIZpay-Vertrags.

= Was macht das FLIZpay-Plugin? =

Deine Kunden wählen FLIZpay während des Checkouts als Zahlungsmethode aus. Anschließend schließen sie die Zahlung über FLIZpay ab und geben sie sicher über ihre Banking-App frei. Signierte Webhooks aktualisieren den Zahlungs- und Bestellstatus in WooCommerce.

Du kannst in den Plugin-Einstellungen einen prozentualen Rabatt konfigurieren. Der Rabatt wird deinen Kunden im Checkout angezeigt und bei berechtigten FLIZpay-Einkäufen berücksichtigt. So kannst du einen Teil deiner eingesparten Zahlungskosten direkt an deine Kunden weitergeben.

Die Einrichtung ist in wenigen Schritten möglich und erfordert keine Programmierkenntnisse.

= Funktionen =

* FLIZpay als Zahlungsmethode in WooCommerce anbieten
* Bankkontobasierte Zahlungen über den FLIZpay-Zahlungsfluss akzeptieren
* Einen prozentualen Rabatt für FLIZpay-Zahlungen konfigurieren
* Den aktuellen Rabatt im Checkout anzeigen
* Zahlungsstatus über signierte Webhooks aktualisieren
* Erfolgreiche, fehlgeschlagene und abgebrochene Zahlungen verarbeiten
* Doppelte Rabatte, Bestellnotizen und E-Mails bei erneut zugestellten Webhooks verhindern
* Eine Vorschau der kundenseitigen Zahlungsmethode in den Plugin-Einstellungen anzeigen
* Einen individuellen Bestellstatus verwenden
* Virtuelle und andere nicht versandpflichtige Produkte unterstützen
* Die Sichtbarkeit von FLIZpay optional auf Kunden in Deutschland beschränken
* WooCommerce Cart und Checkout Blocks unterstützen

= Zahlungskosten senken und Kundenbindung stärken =

Klassische Zahlungsmethoden verursachen für Händler häufig hohe Kosten. FLIZpay hilft Unternehmen dabei, diese Zahlungskosten zu reduzieren. Einen Teil der Ersparnis kannst du als Rabatt an deine Kunden weitergeben und sie damit motivieren, FLIZpay im Checkout auszuwählen.

Rabatte können die Attraktivität von FLIZpay im Checkout erhöhen und Conversion und Kundenbindung unterstützen. Eine konkrete Umsatz- oder Conversion-Steigerung wird nicht garantiert.

= Sicherheit =

FLIZpay ermöglicht bankkontobasierte Zahlungen über einen SEPA-basierten Zahlungsfluss. Deine Kunden geben ihre Zahlung über ihre Banking-App frei. Dabei werden keine Kartendaten benötigt. Die Online-Banking-Passwörter deiner Kunden sind weder für FLIZpay noch für deinen Shop zugänglich.

Arbeite mit einem deutschen Zahlungspartner, der auf europäischen Standards aufbaut – und mach dich unabhängiger von dominanten internationalen Zahlungsnetzwerken.

Der Bestellstatus wird erst aktualisiert, nachdem das Plugin eine gültige, signierte Zahlungsbenachrichtigung erhalten und der zugehörigen Bestellung zugeordnet hat.

= Verfügbarkeit =

Die Verfügbarkeit von FLIZpay kann von Land, Bank, Rechnungsadresse und den Einstellungen des Händlers abhängen. Das Plugin bietet eine optionale Einstellung, mit der du die Zahlungsmethode auf Kunden in Deutschland beschränken kannst. Grundsätzlich können Zahlungen auf allen EU-Konten getätigt werden.

= FLIZ-Business-Konto und Einrichtung =

Für die Nutzung des Plugins benötigst du ein separates FLIZ-Business-Konto und einen API-Schlüssel. Das Business-Konto wird bei der Plugin-Installation nicht automatisch erstellt.

1. Installiere und aktiviere das FLIZpay-Plugin in WordPress.
2. Erstelle unter [app.flizpay.de](https://app.flizpay.de/) ein FLIZ-Business-Konto oder melde dich mit deinem bestehenden Konto an.
3. Öffne im FLIZpay-Business-Bereich den Menüpunkt FLIZ einrichten > Plugins > WooCommerce und generiere deinen API-Schlüssel.
4. Öffne in WordPress WooCommerce > Einstellungen > Zahlungen > FLIZpay.
5. Hinterlege deinen API-Schlüssel und stelle die Verbindung her.
6. Konfiguriere die Zahlungsmethode, den optionalen Rabatt und die gewünschte Sichtbarkeit im Checkout.

= Dienste von Drittanbietern: FLIZpay API =

Dieses Plugin benötigt den externen FLIZpay-API-Service, um Zahlungen zu erstellen und ihren Status zu verarbeiten. Wenn ein Kunde FLIZpay auswählt und eine Transaktion erstellt wird, sendet das Plugin dafür erforderliche Daten an FLIZpay.

Nach der aktuellen Beschreibung gehören dazu:

* Transaktionsdaten wie Betrag, Währung und Bestellreferenz
* E-Mail des Käufers
* Name des Käufers
* Name des Händlers
* Konfigurierter Rabattwert

Weitere Informationen:

* FLIZpay-Business-Konto: [https://app.flizpay.de/](https://app.flizpay.de/)
* WooCommerce-Dokumentation: [https://www.docs.flizpay.de/docs/category/woocommerce/](https://www.docs.flizpay.de/docs/category/woocommerce/)
* FLIZpay-Datenschutzerklärung: [https://flizpay.de/privacy-policy](https://flizpay.de/privacy-policy)
* FLIZpay-Geschäftsbedingungen: [https://flizpay.de/business-terms-and-conditions](https://flizpay.de/business-terms-and-conditions)

Für die Nutzung des FLIZpay-Services gelten die Bedingungen deines FLIZpay-Business-Kontos und die dazugehörigen Datenschutzinformationen.

= Telemetrie und Fehlerberichte – freiwilliges Opt-in =

Um Stabilität und Sicherheit des Plugins zu verbessern, werden ab Version 2.5.3 die Übermittlung von Nutzungs- und Fehlerdaten an Sentry übermittelt.

Die IP-Adresse wird vom Plugin weder erfasst noch gehasht und nicht als Bestandteil des Fehlerberichts an Sentry übermittelt. Beim technischen Empfang der Anfrage kann Sentry die Verbindungs-IP verarbeiten.

Sentry ist ein externer Dienst:

* Service: [https://sentry.io/](https://sentry.io/)
* Datenschutzerklärung: [https://sentry.io/privacy/](https://sentry.io/privacy/)
* Nutzungsbedingungen: [https://sentry.io/terms/](https://sentry.io/terms/)

= Anforderungen =

Das Plugin erfordert:

* WordPress 6.4 oder höher
* WooCommerce 9.0 oder höher
* PHP 8.2 oder höher
* Einen Shop mit HTTPS
* Ein FLIZ-Business-Konto und einen API-Schlüssel

= Dokumentation und Support =

Eine Anleitung zur Installation und Einrichtung findest du in der [FLIZpay-Dokumentation für WooCommerce](https://www.docs.flizpay.de/docs/category/woocommerce/).

Wenn du Unterstützung benötigst oder Feedback hast, wende dich unter [info@flizpay.de](mailto:info@flizpay.de) an FLIZpay.

= Hinweis zu Rabatten und Verfügbarkeit =

Rabatte, unterstützte Banken und die Verfügbarkeit von FLIZpay können variieren. Angebote gelten nur für berechtigte Einkäufe bei teilnehmenden Partnern.

== Screenshots ==

1. Ansicht, wenn FLIZpay in deinem Checkout ausgewählt ist.
2. Ansicht, wenn FLIZpay in deinem Checkout nicht ausgewählt ist.

== Installation ==

Der erste Schritt, um FLIZpay in deinem Checkout zu installieren, ist die Erstellung eines Kontos bei uns. [Gehe auf unsere Website](https://app.flizpay.de), erstelle ein Konto und folge den Anweisungen im Menüpunkt "Installation".

== Changelog ==

- 1.0.0
  - ADDED: Plugin Settings, Cashback info on Checkout Order management for cashback

- 1.0.1
  - FIXED: Plugin Readme, Docs and Data Privacy links

- 1.0.2
  - FIXED: Fixed Logo size for some themes, Updated checkout description and translations

- 1.1.0
  - ADDED: Refund for discounted items and New Logo
  - FIXED: Payment failed page adjustment

- 1.2.0
  - ADDED: Customization of the checkout button
  - FIXED: Default translations for non supported languages

- 1.2.1
  - FIXED: Old payment page was still being displayed

- 1.2.2
  - ADDED: Cancel button to mobile loading modal on checkout

- 1.2.3
  - HOTIFX: FLIZ logo not showing on mobile loading checkout modal

- 1.2.4
  - ADDED: Localstorage to store ongoing orders, Properly translated the admin page
  - FIXED: Loadin wheel layout

- 1.3.0
  - CHANGED: Admin page configuration UX
  - REMOVED: Payment Failed page

- v1.4.0
  - CHANGED: Admin page uses admin user language
  - ADDED: Adding customer information to the transaction being created
  - ADDED: Value with cashback applied, when active, is now displayed in the checkout page

- v1.4.1
  - REMOVED: Reverted value with cashback at the checkout page
  - CHANGED: Increased time of the cashback cached value to 10 min

- v1.4.2
  - CHANGED: Create order in draft mode to prevent accountability softwares from picking the order in pending

- v1.4.3
  - CHANGED: Dynamic cashback value for first purchase and standard options
  - CHANGED: Remove the webhook url on uninstall
  - CHANGED: Disable new order emails for FLIZpay orders

- v1.4.4
  - HOTFIX: Cashback data typecheck for backwards compatibility

- v1.4.5
  - HOTFIX: Total order value could have been stored incorrectly due to taxes variation

- v2.0.0
  - ADDED: Express checkout functionality

- v2.0.1
  - FIXED: Express checkout functionality files

- v2.0.2
  - FIXED: Express checkout button font size

- v2.0.3
  - FIXED: Fix express checkout shipping taxes, german market fees calculation

- v2.0.4
  - FIXED: Fix express checkout for items on sale, small adjustments on loading and translations
  - ADDED: Set business as active/inactive on plugin activation/deactivation

- v2.0.5
  - FIXED: Express checkout button font size, and Emails not being sent for orders paid with FLIZpay

- v2.0.6
  - FIXED: Translations for checkout buttons
  - ADDED: Instant cashback info update when settings change on FLIZ web app

- v2.0.7
  - FIXED: German translation on loading wheel

- v2.1.0
  - ADDED: Support for non-shippable products
  - FIXED: Title length of express checkout button
  - REMOVED: Status draft for new orders

- v2.2.0
  - ADDED: Support for custom order status
  - REMOVED: Google fonts

- v2.2.1
  - FIXED: Plugin upgrader functionality compatibility with older versions

- v2.3.0
  - ADDED: Improved the webhook registration flow

- v2.4.1
  - FIXED: Admin page inputs being loaded incorrectly
  - FIXED: Gateway variables declaration

- v2.4.2
  - FIXED: Order total value not being stored correctly due to taxes variation
  - FIXED: Admin page inputs trying to be accessed before they were loaded
  - REMOVED: Legacy failure page
  - FIXED: Now disables the express checkout button if the cart is empty
  - FIXED: Explicitly set FLIZpay as the payment method for orders created by the plugin

- v2.4.3
  - FIXED - Shipping costs sometimes not appearing in total cost

- v2.4.4
  - ADDED - Plugin version to frontend

- v2.4.5
  - FIXED - Webhook URL missing HTTPS protocol

- v2.4.6
  - FIXED - Checkout script renamed to avoid Germanized conflicts

- v2.4.7
  - FIXED - Total cost calculation for express checkout now happens only in WooCommerce, preventing mismatches

- v2.4.9
  - FIXED - German localization: Corrected the cashback description and payment confirmation message,
  - FIXED - Shipping API: Ensured needs_shipping_method now always returns a boolean.
  - ADDED - Sentry integration: Enabled error tracking for both checkout and product flows.
  - ADDED - Admin option: Introduced a new “Error Reporting” toggle in the admin panel to turn Sentry on or off.

- v2.4.10
  - FIXED - Sentry Integration: Ensured only FLIZpay errors are caught.

- v2.4.11
  - Fixed - Sentry Integration: Fixed sentry loading error.

- v2.4.12
  - Added - Product name to express checkout order
  - Fixed – Shipping options not shown for addresses with house number/sub-unit format.

- v2.4.13
  - Added - Support for Wordpress version 6.8

- v2.4.14
  - Removed - Express checkout feature

- v2.4.15
  - Fixed - Admin JavaScript now only loads on FLIZpay admin screens instead of every dashboard page

- v2.4.16
  - Added - WordPress.org plugin directory banner images (.wordpress-org/)

- v2.4.17
  - Hotfix - Restore missing WordPress.org plugin directory assets (icon, screenshots)

- v2.4.18
  - Added   - FLIZpay is now only shown to customers with a German billing address
  - Removed - Remaining express checkout code and settings
  - Fixed   - Payment creation failing due to order ID type mismatch with the API
  - Fixed   - Added type guard before parsing classic checkout AJAX payload

- v2.4.19
  - Added   - Optional `Restrict to Germany` setting for FLIZpay checkout visibility
  - Fixed   - More reliable plugin upgrade handling during WordPress and bulk update flows

- v2.4.20
  - Added   - Support for failed and canceled payment webhooks
  - Fixed   - Prevented duplicate cashback / notes / emails on retried webhook deliveries

- v2.5.0
  - Security - Webhook requests are rejected unless a valid signing key is configured
  - Security - Payment completion webhooks are now matched against the transaction the plugin issued for the order
  - Security - Order status polling now requires a matching customer session
  - Fixed    - Avoid re-flushing WordPress rewrite rules on every request when the plugin is unconfigured

- v2.5.1
  - Added         - Interactive checkout preview on the FLIZpay settings page
  - Added         - Plugin version reporting to FLIZpay API after plugin updates
  - Changed       - Renamed customer-facing “cashback” wording to “discount” across settings, checkout texts, order notes, README, and translations
  - Compatibility - Tested up to WordPress 7.0

- v2.5.2
  - Fixed   - Decouple FLIZpay enablement from webhook connection status.
  - Fixed   - Use WooCommerce’s standard gateway `enabled` setting.
  - Fixed   - Prevent webhook confirmation from overriding merchant enable/disable preference.
  - Changed - Enable FLIZpay by default for first-time setup while keeping checkout hidden until connection is established.

- v2.5.3
  - Fixed - Corrected the WooCommerce Cart and Checkout Blocks compatibility declaration to reference the main plugin file.

- v2.5.4
  - Added         - Automatic order reconciliation: pending FLIZpay orders are periodically re-checked against the FLIZpay API and settled to their final status
  - Added         - Payment status is also verified on the order confirmation page and before WooCommerce auto-cancels unpaid orders
  - Added         - Centralized payment settlement service applying validated, idempotent order updates for both webhooks and reconciliation
  - Fixed         - Duplicate FLIZpay transactions can no longer be created for the same checkout attempt
  - Changed       - The transaction reference is now the single transaction identifier, with backward-compatible handling of orders created by older versions
  - Compatibility - Minimum requirements raised to WordPress 6.4, PHP 8.2, and WooCommerce 9.0

- v2.6.0
  - Added   - One-click connection from the FLIZpay merchant dashboard: a one-time link opens the FLIZpay settings screen, where a single confirmation connects the shop without copying an API key.
  - Added   - FLIZPAY_API_BASE_URL wp-config constant to point the plugin at a staging or local FLIZpay API.

== Upgrade Notice ==

= v2.6.0 =
* Added   - One-click connection from the FLIZpay merchant dashboard.
* Added   - FLIZPAY_API_BASE_URL wp-config constant for staging or local FLIZpay APIs.

= v2.5.4 =
* Added         - Automatic order reconciliation: pending FLIZpay orders are periodically re-checked against the FLIZpay API and settled to their final status
* Added         - Payment status is also verified on the order confirmation page and before WooCommerce auto-cancels unpaid orders
* Added         - Centralized payment settlement service applying validated, idempotent order updates for both webhooks and reconciliation
* Fixed         - Duplicate FLIZpay transactions can no longer be created for the same checkout attempt
* Changed       - The transaction reference is now the single transaction identifier, with backward-compatible handling of orders created by older versions
* Compatibility - Minimum requirements raised to WordPress 6.4, PHP 8.2, and WooCommerce 9.0

= v2.5.3 =
* Fixed - Corrected the WooCommerce Cart and Checkout Blocks compatibility declaration to reference the main plugin file.

= v2.5.2 =
* Fixed   - Decouple FLIZpay enablement from webhook connection status.
* Fixed   - Use WooCommerce’s standard gateway `enabled` setting.
* Fixed   - Prevent webhook confirmation from overriding merchant enable/disable preference.
* Changed - Enable FLIZpay by default for first-time setup while keeping checkout hidden until connection is established.

= v2.5.1 =
* Added         - Interactive checkout preview on the FLIZpay settings page
* Added         - Plugin version reporting to FLIZpay API after plugin updates
* Changed       - Renamed customer-facing “cashback” wording to “discount” across settings, checkout texts, order notes, README, and translations
* Compatibility - Tested up to WordPress 7.0

= v2.5.0 =
* Security - Webhook requests are rejected unless a valid signing key is configured
* Security - Payment completion webhooks are now matched against the transaction the plugin issued for the order
* Security - Order status polling now requires a matching customer session
* Fixed    - Avoid re-flushing WordPress rewrite rules on every request when the plugin is unconfigured

= 2.4.20 =
* Added   - Support for failed and canceled payment webhooks
* Fixed   - Prevented duplicate cashback / notes / emails on retried webhook deliveries

= 2.4.19 =
* Added   - Optional `Restrict to Germany` setting for FLIZpay checkout visibility
* Fixed   - More reliable plugin upgrade handling during WordPress and bulk update flows

= 2.4.18 =
* Added   - FLIZpay is now only shown to customers with a German billing address
* Removed - Remaining express checkout code and settings
* Fixed   - Payment creation failing due to order ID type mismatch with the API
* Fixed   - Added type guard before parsing classic checkout AJAX payload

= 2.4.17 =
* Hotfix - Restore missing WordPress.org plugin directory assets (icon, screenshots)

= 2.4.16 =
* Added - WordPress.org plugin directory banner images

= 2.4.15 =
* Fixed - Admin JavaScript now only loads on FLIZpay admin screens instead of every dashboard page

= 2.4.14 =
* Removed - Express checkout feature

= 2.4.13 =
* Added - Support for Wordpress version 6.8

= 2.4.12 =
* Added - Product name to express checkout order
* Fixed – Shipping options not shown for addresses with house number/sub-unit format.

= 2.4.11 =
* Fixed - Sentry Integration: Fixed sentry loading error.

= 2.4.10 =
* FIXED - Sentry Integration: Ensured only FLIZpay errors are caught.

= 2.4.9 =
* FIXED - German localization: Corrected the cashback description and payment confirmation message,
* FIXED - Shipping API: Ensured needs_shipping_method now always returns a boolean.
* ADDED - Sentry integration: Enabled error tracking for both checkout and product flows.
* ADDED - Admin option: Introduced a new “Error Reporting” toggle in the admin panel to turn Sentry on or off.

= 2.4.7 =
* FIXED - Total cost calculation for express checkout now happens only in WooCommerce, preventing mismatches

= v2.4.6 =
* FIXED - Checkout script renamed to avoid Germanized conflicts

= 2.4.5 =
* Fixed - Webhook URL missing HTTPS protocol

= 2.4.4 =
* Added - Plugin version to frontend

= 2.4.3 =
* Hotfix - Shipping costs sometimes not appearing in total cost

= 2.4.2 =
* Hotfix for order total value not being stored correctly due to taxes variation
* Hotfix for admin page inputs trying to be accessed before they were loaded
* Removed legacy failure page
* Hotfix for express checkout button being disabled if the cart is empty
* Hotfix for explicitly setting FLIZpay as the payment method for orders created by the plugin

= 2.4.1 =
* Hotfix for gateway variables declaration and admin page inputs not loading correctly

= 2.3.0 =
* Improved the webhook registration flow

= 2.2.1 =
* Fixed plugin upgrader functionality compatibility with older versions

= 2.2.0 =
* Added support for custom order status and removed google fonts

= 2.1.0 =
* Added support for non-shippable products, fixed title length of express checkout button and removal of status draft for new orders

= 2.0.7 =
* Fix german translation on the mobile loading wheel

= 2.0.6 =
* Fix translation for checkout buttons and implement instant cashback info from FLIZ web app

= 2.0.5 =
* Hotfix for express checkout button font size and emails not being sent for orders paid with FLIZpay

= 2.0.4 =
* Fix for express checkout for items on sale, small adjustments on loading and translations

= 2.0.3 =
* Hotfix for express checkout shipping taxes and german market fees calculation

= 2.0.2 =
* Hotfix for express checkout button font size

= 2.0.1 =
* Hotfix for express checkout functionality files

= 2.0.0 =
* Seamless checkout experience with the new express checkout functionality

= v1.4.5 =
* Hotfix total order value could have been stored incorrectly due to taxes variation

= v1.4.4 =
* Hotfix for cashback data type backwards compatibility

= v1.4.3 =
* Dynamic cashback value for first purchase and standard options
* Remove the webhook url on uninstall
* Disable new order emails for FLIZpay orders

= v1.4.2 =
* Orders are now created in draft mode to prevent being picked by other softwares while in pending state

= v1.4.1 =
* Reverted value with cashback at the checkout page and increased cached time for cashback value

= v1.4.0 =
* The admin page now is presented on the admin user language or defaults to system language. Customer information add to the Transaction and value with cashback displayed on the checkout page

= v1.3.0 =
* The admin page now has a better UX and the payment failed page was removed in favor of FLIZ payment failed page

= v1.2.4 =
* Localstorage order storage, admin page translation and fixed on loading wheel layout

= v1.2.3 =
* Hotfixed the FLIZ logo not showing on the mobile checkout loading modal

= v1.2.2 =
* A cancel button is now available for mobile checkout

= v1.2.1 =
* Old payment failed page is no longer displayed

= v1.2.0 =
* Checkout button customization and fix on default translations

= v1.1.0 =
* Refund for discounted items, new logo and pages adjustments

= v1.0.2 =
* Logo and Descriptions fixes

= v1.0.1 =
* Readme and Documentation fixes

= v1.0.0 =
* Version 1.0.0 FLIZpay Gateway für WooCommerce Plugin
