mivita/tests/Feature
Kevin ccc6f85809 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
..
BusinessPlan 10.April 2026 2026-04-10 17:15:27 +02:00
BusinessStoreOptimized 10.April 2026 2026-04-10 17:15:27 +02:00
Incentive 14-04-2026 2026-04-14 18:07:45 +02:00
Payment 20-02-2026 2026-02-20 17:55:06 +01:00
PaymentDashboard 14-04-2026 2026-04-14 18:07:45 +02:00
Sys 10.April 2026 2026-04-10 17:15:27 +02:00
AboHelperSetAboActiveClearsHoldTest.php 10.April 2026 2026-04-10 17:15:27 +02:00
AboMakeOrderOneTimeTest.php Abo Einmalprodukte: Phase 4 - Ausfuehrung, Purge & User-Retry 2026-06-08 15:32:27 +00:00
AboOneTimeServiceTest.php Abo Einmalprodukte: Review-Gate (VIP), Verbindlichkeit & Summen-Layout 2026-06-08 14:59:22 +00:00
AboOneTimeViewTest.php Abo Einmalprodukte: Review-Gate (VIP), Verbindlichkeit & Summen-Layout 2026-06-08 14:59:22 +00:00
AboOneTimeWindowTest.php Abo Einmalprodukte: Review-Gate (VIP), Verbindlichkeit & Summen-Layout 2026-06-08 14:59:22 +00:00
AboRepositoryDateChangeTest.php Steuerberater Modul tax 2026-05-08 15:34:57 +02:00
AboUserRetryTest.php Abo Einmalprodukte: Phase 4 - Ausfuehrung, Purge & User-Retry 2026-06-08 15:32:27 +00:00
AdminAboRetryPaymentTest.php Steuerberater Modul tax 2026-05-08 15:34:57 +02:00
BackfillFrenchDatabaseTranslationsTest.php 13-05-2026 implementation FR 2026-05-13 17:33:52 +02:00
BackofficeStatisticsAccessTest.php User Statistik 2026-05-18 17:23:28 +02:00
CartMaxWeightTest.php Abo Einmalprodukte und Bestätigung abschließen 2026-06-05 15:28:08 +00:00
DhlApiCurlLoggingTest.php update 20.10.2025 2025-10-20 17:42:08 +02:00
ExampleTest.php First Commit 2018-10-29 09:39:31 +01:00
FrenchLocalizationTest.php 13-05-2026 implementation FR 2026-05-13 17:33:52 +02:00
LocalizationMiddlewareTest.php 10.April 2026 2026-04-10 17:15:27 +02:00
MembershipQtyProtectionTest.php 10.April 2026 2026-04-10 17:15:27 +02:00
PayoneHashKeyCommandTest.php Payment Phase R: PAYONE-Integration entflechten (R1–R7 + Review) 2026-06-10 13:42:45 +00:00
PayonePaymentServiceTest.php Payment Phase R: PAYONE-Integration entflechten (R1–R7 + Review) 2026-06-10 13:42:45 +00:00
PayoneTransactionRecorderTest.php Payment Phase R: PAYONE-Integration entflechten (R1–R7 + Review) 2026-06-10 13:42:45 +00:00
PayoneTransportExceptionHandlingTest.php Payment Phase R: PAYONE-Integration entflechten (R1–R7 + Review) 2026-06-10 13:42:45 +00:00
PayoneWebhookHandlerTest.php Payment Phase R: PAYONE-Integration entflechten (R1–R7 + Review) 2026-06-10 13:42:45 +00:00
RepairMissingAboFromOrdersTest.php 10.April 2026 2026-04-10 17:15:27 +02:00
RetryFailedPaypalAbosTest.php 10.April 2026 2026-04-10 17:15:27 +02:00
WizardPaymentCartTest.php 14-04-2026 2026-04-14 18:07:45 +02:00