chore(payments): Webhook-Rohmitschnitt nur bei logs/webhook_debug
This commit is contained in:
+6
-4
@@ -26,10 +26,12 @@ foreach ($_SERVER as $key => $value) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Letzte Zustellung roh ablegen (logs/ ist per .htaccess gesperrt) -- fuer die Fehlersuche
|
// Letzte Zustellung roh ablegen -- nur wenn logs/webhook_debug existiert (Fehlersuche an
|
||||||
// an der Signaturpruefung. Enthaelt keine Zugangsdaten.
|
// der Signaturpruefung, 13.09.2026). logs/ ist per .htaccess gesperrt.
|
||||||
@\file_put_contents(__DIR__ . '/logs/webhook_last_' . \preg_replace('/[^a-z0-9_]/', '', $module) . '.json',
|
if (\is_file(__DIR__ . '/logs/webhook_debug')) {
|
||||||
\json_encode(['time' => \date('c'), 'headers' => $headers, 'body' => $rawBody], JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES));
|
@\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 {
|
try {
|
||||||
$status = $provider->onWebhook($headers, $rawBody);
|
$status = $provider->onWebhook($headers, $rawBody);
|
||||||
|
|||||||
Reference in New Issue
Block a user