Fix webhook signature verification logic

Signed-off-by: TechNoNerd87 <113461509+TechNoNerd87@users.noreply.github.com>
This commit is contained in:
TechNoNerd87
2025-11-30 21:31:21 -06:00
committed by GitHub
parent 8a6bfcd0a3
commit 90b135e211

View File

@@ -711,6 +711,7 @@ class StripePaymentDriver extends BaseDriver implements SupportsHeadlessInterfac
nlog("Stripe webhook signature verification failed: No signature header");
return response()->json(['error' => 'No signature header'], 403);
}
}
try {
\Stripe\Webhook::constructEvent(
$request->getContent(),