fix(paypal_v2): Webhook-Signatur lokal pruefen (Zertifikat, CRC32, SHA256withRSA); API-Verify nur als Rueckfall

This commit is contained in:
Thomas Bartelt
2026-09-13 21:32:17 +02:00
parent 4248f8c148
commit 4ce09ac1b6
2 changed files with 64 additions and 2 deletions
+5
View File
@@ -26,6 +26,11 @@ foreach ($_SERVER as $key => $value) {
}
}
// Letzte Zustellung roh ablegen (logs/ ist per .htaccess gesperrt) -- fuer die Fehlersuche
// an der Signaturpruefung. Enthaelt keine Zugangsdaten.
@\file_put_contents(__DIR__ . '/logs/webhook_last_' . \preg_replace('/[^a-z0-9_]/', '', $module) . '.json',
\json_encode(['time' => \date('c'), 'headers' => $headers, 'body' => $rawBody], JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES));
try {
$status = $provider->onWebhook($headers, $rawBody);
} catch (\Throwable $e) {