Skip to content

Commit

Permalink
feat: add more context in message for SecurityException
Browse files Browse the repository at this point in the history
  • Loading branch information
joyet-simon committed Oct 4, 2024
1 parent 1686d1b commit c015afa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Helper/SecurityHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public function __construct()
public function isHmacValidated(string $paymentId, string $key, string $signature): void
{
if (!$this->paymentValidator->isHmacValidated($paymentId, $key, $signature)) {
throw new SecurityException("HMAC validation failed for payment $paymentId");
throw new SecurityException("HMAC validation failed for payment $paymentId - API key: $key, signature: $signature");
}
}

Expand Down

0 comments on commit c015afa

Please sign in to comment.