mivita/config/logging.php
Kevin 6f21845607 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

139 lines
4.1 KiB
PHP
Executable file

<?php
use Monolog\Handler\StreamHandler;
return [
/*
|--------------------------------------------------------------------------
| Default Log Channel
|--------------------------------------------------------------------------
|
| This option defines the default log channel that gets used when writing
| messages to the logs. The name specified in this option should match
| one of the channels defined in the "channels" configuration array.
|
*/
'default' => env('LOG_CHANNEL', 'stack'),
/*
|--------------------------------------------------------------------------
| Log Channels
|--------------------------------------------------------------------------
|
| Here you may configure the log channels for your application. Out of
| the box, Laravel uses the Monolog PHP logging library. This gives
| you a variety of powerful log handlers / formatters to utilize.
|
| Available Drivers: "single", "daily", "slack", "syslog",
| "errorlog", "monolog",
| "custom", "stack"
|
*/
'channels' => [
'order_controller' => [
'driver' => 'daily',
'path' => storage_path('logs/order_controller.log'),
'level' => env('LOG_LEVEL', 'warning'),
'days' => 14,
],
'abo_order' => [
'driver' => 'daily',
'path' => storage_path('logs/abo_order.log'),
'level' => env('LOG_LEVEL', 'warning'),
'days' => 14,
],
'domain' => [
'driver' => 'daily',
'path' => storage_path('logs/domain.log'),
'level' => env('LOG_LEVEL', 'warning'),
'days' => 14,
],
'payone' => [
'driver' => 'daily',
'path' => storage_path('logs/payone.log'),
'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'),
'level' => env('LOG_LEVEL', 'info'),
'days' => 7,
],
'payment' => [
'driver' => 'daily',
'path' => storage_path('logs/payment.log'),
'level' => env('LOG_LEVEL', 'warning'),
'days' => 30,
],
'cron' => [
'driver' => 'daily',
'path' => storage_path('logs/cron.log'),
'level' => env('LOG_LEVEL', 'info'),
'days' => 14,
],
'dhl' => [
'driver' => 'daily',
'path' => storage_path('logs/dhl.log'),
'level' => env('LOG_LEVEL', 'info'),
'days' => 30,
],
'stack' => [
'driver' => 'stack',
'channels' => ['single'],
],
'single' => [
'driver' => 'daily',
'path' => storage_path('logs/laravel.log'),
'level' => env('LOG_LEVEL', 'warning'),
'days' => 14,
],
'daily' => [
'driver' => 'daily',
'path' => storage_path('logs/laravel.log'),
'level' => env('LOG_LEVEL', 'warning'),
'days' => 14,
],
'slack' => [
'driver' => 'slack',
'url' => env('LOG_SLACK_WEBHOOK_URL'),
'username' => 'Laravel Log',
'emoji' => ':boom:',
'level' => 'critical',
],
'stderr' => [
'driver' => 'monolog',
'handler' => StreamHandler::class,
'with' => [
'stream' => 'php://stderr',
],
],
'syslog' => [
'driver' => 'syslog',
'level' => 'debug',
],
'errorlog' => [
'driver' => 'errorlog',
'level' => 'debug',
],
],
];