Skip to content

Commit

Permalink
fix(SFT-SFT-1465): stripe webhook errors
Browse files Browse the repository at this point in the history
  • Loading branch information
seandelaney committed Dec 12, 2024
1 parent 1d63f5e commit 8dedf2f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit 8dedf2f

Please sign in to comment.