Commit graph

42 commits

Author SHA1 Message Date
e1da90ff91 Stripe-Integration (S0–S3): Einmalzahlungen über Stripe Checkout + Notfall-Go-Live
Wegen PAYONE-Ausfall vorgezogen live geschaltet: alle Einmalzahlungen
(Shop + Salescenter) laufen über Stripe Hosted Checkout, Abos sind bis
Phase S4 eingefroren.

- Provider-Abstraktion: PaymentProvider-Enum, PaymentGatewayInterface,
  PaymentProviderManager (Settings-Schalter, provider-treu je Bestand),
  PayoneGateway als unveränderter Adapter
- StripePaymentService: Checkout Session (eine Gesamtposition, Metadata,
  success/cancel-Redirects), StripeClientWrapper (lazy, Dark Launch),
  StripeCustomerService, StripeTransactionRecorder (client_secret-Redaction)
- Webhook /stripe/webhook: Signaturprüfung, Idempotenz über
  stripe_webhook_events (Crash-Retry-Reprocessing), txaction-Prioritäten,
  Betrags-Guard, lockForUpdate-Paid-Pfad, genau eine Bestätigungsmail
- Zahlungsmethoden-Anzeige aus charge.succeeded (carddata inkl. Wallet,
  auftragsunabhängiges Backfill aus dem Event-Store)
- Checkout: Wartungsmodus mit Admin-Bypass, Abo-Freeze-Hinweis,
  Stripe-Option (Online-Zahlung) statt Zahlartenwahl, Vorkasse ausblendbar
- Abo-Freeze-Guards: Cron user:make_abo_order, Retry, Kartenupdate
- Admin-Settings-Karte Zahlungen (Provider, Wartung, Freeze, Vorkasse)
- Hotfix: 500 bei Vorkasse ohne Clearing-Daten in admin/sales/_detail
  und checkout-final (PAYONE-Ausfall)
- Doku dev/2026-07-08-stripe/ (Plan S0–S8, Konzept, IST-Analyse)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-08 15:56:41 +00:00
e7b40bc513 Abo-Recovery: fehlgeschlagene Folgezahlung im Checkout nachholen
- Pay-now-Flow: bei fehlgeschlagenem Abo (Status 3) begleicht der Inhaber die
  offene Rechnung im Standard-Checkout mit frei waehlbarer, abo-faehiger Zahlart
  (nur eigenes Abo: Berater me-View + Kundenportal), payNow-Controller + Routen
- AboRecoveryCheckoutService baut die ShoppingInstance aus den Abo-Artikeln;
  neue Spalte shopping_orders.recovery_user_abo_id verknuepft Bestellung<->Abo
- Bei Erfolg: AboHelper::advanceAboAfterRecoveryPayment schreibt das Abo fort
  (Status->2, next_date) und uebernimmt die gewaehlte Zahlart als neues Token
  fuer kuenftige Abbuchungen
- Neue Pay-now-Fehlermail (AboPaymentFailedMail) ersetzt die generische
  Fehlermail im Abo-Cron; Link fuehrt auf die Abo-Detailseite (CRM bzw. Portal)
- Retry-/"extern erledigt"-Buttons nur noch fuer Admins; tote user/portal-
  Retry-Routen entfernt
- Checkout: Recovery-Hinweis statt "Abschluss des Abonnements", Lieferadresse
  vorbelegt, korrekter Zurueck-Link (Abo statt Shop)
- UserAbo::selfServiceDetailUrl zentralisiert die Abo-URL (Mail, Back-Links)
- Test-Command abo:test-recovery; Tests fuer payNow, Advance-Logik, Fehlermail

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-02 10:38:05 +00:00
8593dbe65d Payment Phase R: PAYONE-Integration entflechten (R1–R7 + Review)
Strangler-Refactoring der PAYONE-Zahlungslogik in eine testbare
Service-Schicht, ohne Verhalten in Checkout/Cron/IPN zu ändern.

Neue Services (app/Services/Payment/Payone):
- PayonePaymentService (+ PayonePaymentResult-DTO) für CC-/SEPA-Check
  und Abo-Abbuchung
- PayoneRequestBuilder, PaymentMethodResolver, PayoneMethodConfig
- PayoneTransactionRecorder: zentrale PaymentTransaction-Erstellung
  (API-Response, Invoice, Webhook) inkl. PCI-Redaction (cardpan/cardcvc2)
- PayoneWebhookHandler (+ PayoneWebhookResult): IPN/TSOK-Logik aus
  Api\PayoneController; response('TSOK') statt echo/exit
- PayoneTransportException + Handler-Mapping (403) statt abort() im Service

Hotfixes (R1): var_dump/exit & bare exit() entfernt, Log-Redaction.

Security (R-Review):
- PAYONE_KEY_HASH (MD5-Hash, kein Klartext) mit Boot-Hard-Fail; schließt
  zugleich die ''-Webhook-Bypass-Lücke. Artisan-Command payone:hash-key
  (verdeckte Eingabe, optional --write) zur Hash-Erzeugung.
- Webhook: txaction Pflichtfeld, mode-Fallback auf payment->mode.

Pay\PayoneController ist @deprecated-Fassade (614 → 328 Zeilen),
delegiert an Services via Container-Singleton.

Migration: fehlende Spalte shopping_payments.carddata nachgezogen.

Tests: 47 grün (PayonePaymentService, Recorder, Webhook, Resolver,
TransportException, hash-key). End-to-End im Test-System verifiziert
(siehe dev/2026-06-09-payments).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-10 13:42:45 +00:00
53bdba33cd User Statistik 2026-05-18 17:23:28 +02:00
0f82fea88a 14-04-2026 2026-04-14 18:07:45 +02:00
a00c42e770 20-02-2026 2026-02-20 17:55:06 +01:00
a939cd51ef update 20.10.2025 2025-10-20 17:42:08 +02:00
8c11130b5d Cocker Setup 2025-08-29 14:48:03 +02:00
Kevin Adametz
480fdc65ed commit 08-2025 2025-08-12 18:01:59 +02:00
Kevin Adametz
9ae662f63e Updates to 03-2025 2025-04-01 10:36:47 +02:00
Kevin Adametz
bfa3bb1df4 08 2024 2024-08-05 12:05:24 +02:00
Kevin Adametz
04d677d37a last changes since 6-2023 2023-07-03 10:07:08 +02:00
Kevin Adametz
0341c9c189 Free Shipping, Business Levels correction, Products Buying, Fonts 2023-01-25 12:37:29 +01:00
Kevin Adametz
582ca8299d Sammelbestellung von Extern 2022-07-18 18:07:31 +02:00
Kevin Adametz
7a040c3e19 06 2022 2022-06-15 18:08:45 +02:00
Kevin Adametz
9b0b5feb7e Update Framework, Invoices 2022-04-14 13:14:36 +02:00
Kevin Adametz
cc5c147c27 API User Like 2021-12-25 02:59:15 +01:00
Kevin Adametz
39d1e93416 Country Prices | Homeparty | Shop | Order 2021-08-27 18:53:12 +02:00
Kevin Adametz
36872100c6 Homeparty online, Cron SEPA 2021-04-23 14:54:09 +02:00
Kevin Adametz
32595ab5a1 Bug Bestellungen 2020-12-20 18:04:59 +01:00
Kevin Adametz
c73299e52e Homparty v1.0 2020-12-17 23:02:22 +01:00
Kevin Adametz
c4ed6b39db Erweiterungen / Korrekturen Beraterbestellungen 2020-09-08 19:22:07 +02:00
Kevin Adametz
ecc71c616f Berater Bestellung / online 2020-08-24 18:17:02 +02:00
Kevin Adametz
16fe2fa363 Next Member Shopping 2020-08-21 18:20:40 +02:00
Kevin Adametz
fb27009339 cart responsive, Checkout from cart 2020-08-14 18:32:41 +02:00
Kevin Adametz
da08e9ff37 MwSt 2020-07-01 13:21:35 +02:00
Kevin Adametz
75a0f9a38a Customers Add+Edit, API WP 2020-06-12 14:46:51 +02:00
Kevin Adametz
dc63fa9fb2 Kundenhoheit 2020-05-06 15:43:53 +02:00
Kevin Adametz
8e4bb0c2f6 register, Grundpreis 2020-04-01 15:35:11 +02:00
Kevin Adametz
1ada368ed4 Berater Register, Mitgliedschat live
https://dev.adametz.media:3000/cliquers/mivita.care/issues/3
2020-03-09 14:45:09 +01:00
Kevin Adametz
21abafb8db Membership 2020-03-07 19:44:58 +01:00
Kevin Adametz
37cb2b06c7 membership register 2020-02-15 14:53:32 +01:00
Kevin Adametz
3711fcc8d0 01 2020 2020-02-14 10:18:44 +01:00
Kevin Adametz
f117f79bb9 SEPA Payment 2020-01-08 19:40:16 +01:00
Kevin Adametz
8ebdacec98 23.11 Upload to live 2019-11-23 15:02:41 +01:00
Kevin Adametz
044a6bf253 Payone, Shop, wizard 2019-03-04 17:05:44 +01:00
Kevin Adametz
446bc4561b checkout, register, payment,
checkout correction,
register wizard,
payment packege,
2019-03-02 00:08:11 +01:00
Kevin Adametz
6e3adac4d7 payment Card first 4 payments inc. mails 2019-02-28 18:09:54 +01:00
Kevin Adametz
c20deac3fe save order 2019-02-25 22:16:08 +01:00
Kevin Adametz
d1dae9b736 payone 2 2019-02-22 18:41:06 +01:00
Kevin Adametz
1953c97cd0 final checkout and card 2019-02-21 21:38:36 +01:00
Kevin Adametz
4bd21bd986 final checkout und card 2019-02-21 21:38:26 +01:00