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>
This commit is contained in:
parent
671022a28d
commit
6f21845607
48 changed files with 4428 additions and 831 deletions
|
|
@ -58,6 +58,14 @@ return [
|
|||
'level' => env('LOG_LEVEL', 'warning'),
|
||||
'days' => 14,
|
||||
],
|
||||
// 'info' statt 'warning': Während der Stripe-Einführung sollen auch
|
||||
// verarbeitete Webhooks nachvollziehbar sein (Rollout-Beobachtung).
|
||||
'stripe' => [
|
||||
'driver' => 'daily',
|
||||
'path' => storage_path('logs/stripe.log'),
|
||||
'level' => env('LOG_LEVEL', 'info'),
|
||||
'days' => 14,
|
||||
],
|
||||
'cleanup' => [
|
||||
'driver' => 'daily',
|
||||
'path' => storage_path('logs/cleanup.log'),
|
||||
|
|
|
|||
22
config/stripe.php
Normal file
22
config/stripe.php
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
<?php
|
||||
|
||||
return [
|
||||
/*
|
||||
* Stripe-Zugangsdaten. Bewusst KEIN Hard-Fail beim Boot (anders als
|
||||
* config/payone.php): Stripe ist erst aktiv, wenn der Anbieter-Schalter
|
||||
* umgelegt wird. Der StripeClientWrapper schlägt beim ersten Zugriff hart
|
||||
* fehl, wenn 'secret' fehlt — so bleibt ein Deployment ohne Stripe-Keys
|
||||
* verhaltensneutral (Dark Launch, Plan Phase S0/S8).
|
||||
*/
|
||||
'secret' => env('STRIPE_SECRET'),
|
||||
|
||||
// Publishable Key — beim Hosted-Checkout-Redirect serverseitig nicht nötig,
|
||||
// aber für Dashboards/Debug-Views und spätere eingebettete Flows hinterlegt.
|
||||
'key' => env('STRIPE_KEY'),
|
||||
|
||||
// Signing-Secret des Webhook-Endpoints (whsec_…), Pflicht für Live-Webhooks.
|
||||
'webhook_secret' => env('STRIPE_WEBHOOK_SECRET'),
|
||||
|
||||
// 'test' | 'live' — muss zum verwendeten Key-Paar passen (analog payone mode).
|
||||
'mode' => env('STRIPE_MODE', 'test'),
|
||||
];
|
||||
Loading…
Add table
Add a link
Reference in a new issue