From 3f685f07560a89caaab6e370a70274d0d134b2f8 Mon Sep 17 00:00:00 2001 From: Emtiaz Zahid Date: Thu, 17 Apr 2025 12:53:21 +0600 Subject: [PATCH] fix license key updated webhook handler --- src/Http/Controllers/WebhookController.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Http/Controllers/WebhookController.php b/src/Http/Controllers/WebhookController.php index 29d45a6..b1e0048 100644 --- a/src/Http/Controllers/WebhookController.php +++ b/src/Http/Controllers/WebhookController.php @@ -294,7 +294,9 @@ private function handleLicenseKeyUpdated(array $payload): void $licenseKey = $licenseKey->sync($payload['data']['attributes']); - LicenseKeyUpdated::dispatch($licenseKey->billable(), $licenseKey); + $billable = $this->resolveBillable($payload); + + LicenseKeyUpdated::dispatch($billable, $licenseKey); } /**