From 4288b9db1b2acb04ff1f093f20b162d912a2f288 Mon Sep 17 00:00:00 2001 From: TechNoNerd87 <113461509+TechNoNerd87@users.noreply.github.com> Date: Sun, 23 Nov 2025 14:49:48 -0600 Subject: [PATCH] Initialize webhook processing in StripePaymentDriver Added initialization for webhook processing and error handling. Signed-off-by: TechNoNerd87 <113461509+TechNoNerd87@users.noreply.github.com> --- app/PaymentDrivers/StripePaymentDriver.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/app/PaymentDrivers/StripePaymentDriver.php b/app/PaymentDrivers/StripePaymentDriver.php index 76fd199e1b..589b32e643 100644 --- a/app/PaymentDrivers/StripePaymentDriver.php +++ b/app/PaymentDrivers/StripePaymentDriver.php @@ -704,7 +704,15 @@ class StripePaymentDriver extends BaseDriver implements SupportsHeadlessInterfac public function processWebhookRequest(PaymentWebhookRequest $request) { - // Validate webhook signature if webhook_secret is configured + // Initialize to load webhook_secret and other config + try { + $this->init(); + } catch (\Exception $e) { + nlog("Stripe webhook init failed: " . $e->getMessage()); + // Continue without webhook secret verification if init fails + } + + // Validate webhook signature if webhook_secret is configured if ($this->webhook_secret) { $sig_header = $_SERVER["HTTP_STRIPE_SIGNATURE"] ?? $request->header('Stripe-Signature');