diff --git a/packages/plugin/src/Integrations/PaymentGateways/Stripe/Controllers/StripeWebhookController.php b/packages/plugin/src/Integrations/PaymentGateways/Stripe/Controllers/StripeWebhookController.php index 82332d204..af148e84b 100644 --- a/packages/plugin/src/Integrations/PaymentGateways/Stripe/Controllers/StripeWebhookController.php +++ b/packages/plugin/src/Integrations/PaymentGateways/Stripe/Controllers/StripeWebhookController.php @@ -31,7 +31,8 @@ public function actionWebhooks(): Response $json = json_decode($payload, false); $header = $_SERVER['HTTP_STRIPE_SIGNATURE'] ?? null; - $hash = $json->data->object->metadata->hash; + $hash = $json->data->object->subscription_details->metadata->hash ?? $json->data->object->metadata->hash; + [, $integration] = $this->getRequestItems($hash); $secret = $integration->getWebhookSecret();