v2.2: Verkaufsfertig-Fundament — Mollie/Payment-Abstraktion, MwSt/Grundpreis (PAngV), Versandzonen, Bestellmails (Listmonk/SMTP/Log), Feature-Flags
- payments.js: einheitliche createPayment/Webhook-Schnittstelle (Mollie Default, Stripe, Demo); Auto-Provider-Wahl; Mollie-REST + /api/payments/webhook (idempotent); Fake-Key => sauberer Demo-Fallback - mailer.js: sendMail via Listmonk-Tx / SMTP (nodemailer) / Log-Fallback (email_log); gebrandete Bestellbestaetigung bei paid - DACH: products.mwst + base_amount/base_unit/base_price_per (Grundpreis); Storefront/Warenkorb/Checkout/Erfolg/Admin mit MwSt-Ausweis + Versand-Transparenz; tax_cents/shipping_cents/country an Orders - shipping_zones-Tabelle + CRUD + shippingFor(); Admin 'Versand'; serverseitige Versandberechnung in /api/checkout + /api/shipping-quote (Laenderwahl live) - Feature-Flags (feature_*) + feature()-Helper; Admin Module-Toggles; Newsletter-Gating (Popup/Subscribe) - Admin-API/Manifest/ai-admin.txt um shipping_zones erweitert; MCP list/upsert/delete_shipping; README/.env.example ergaenzt; Version 2.2.0
This commit is contained in:
@@ -25,3 +25,27 @@ STRIPE_SECRET_KEY=sk_test_xxxxxxxxxxxxxxxxxxxxxxxx
|
||||
# --- MCP-Server (mcp/) ---
|
||||
# HDC_BASE_URL=https://shop.example.com
|
||||
# HDC_API_TOKEN= (dasselbe Token wie oben)
|
||||
|
||||
# --- Zahlung: Provider-Abstraktion (v2.2) ---
|
||||
# Provider explizit wählen: mollie | stripe | demo. Leer => Auto-Wahl nach vorhandenen Keys.
|
||||
PAYMENT_PROVIDER=
|
||||
# Mollie (Default-Anbieter). Test- oder Live-Key. Ohne gültigen Key läuft der Demo-Fallback.
|
||||
MOLLIE_API_KEY=
|
||||
# (Stripe-Keys siehe oben — werden weiterhin unterstützt.)
|
||||
|
||||
# --- E-Mail-Versand (v2.2) ---
|
||||
# Provider: listmonk | smtp | (leer => Log-Fallback in DB-Tabelle email_log)
|
||||
MAIL_PROVIDER=
|
||||
# Absenderadresse für ausgehende Mails
|
||||
MAIL_FROM=shop@example.com
|
||||
# Listmonk (Transactional-API /api/tx)
|
||||
LISTMONK_URL=https://listmonk.example.com
|
||||
LISTMONK_USER=
|
||||
LISTMONK_PASS=
|
||||
LISTMONK_TX_TEMPLATE_ID=
|
||||
# SMTP (alternativ, via nodemailer)
|
||||
SMTP_HOST=
|
||||
SMTP_PORT=587
|
||||
SMTP_USER=
|
||||
SMTP_PASS=
|
||||
SMTP_SECURE=false
|
||||
|
||||
Reference in New Issue
Block a user