Skip to content

Commit 97aa0fa

Browse files
Dispatching the correct event name when a license is created (#35)
1 parent 7332ad5 commit 97aa0fa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Http/Controllers/WebhookController.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
use LemonSqueezy\Laravel\Events\SubscriptionResumed;
1919
use LemonSqueezy\Laravel\Events\SubscriptionUnpaused;
2020
use LemonSqueezy\Laravel\Events\SubscriptionUpdated;
21+
use LemonSqueezy\Laravel\Events\LicenseKeyCreated;
2122
use LemonSqueezy\Laravel\Events\WebhookHandled;
2223
use LemonSqueezy\Laravel\Events\WebhookReceived;
2324
use LemonSqueezy\Laravel\Exceptions\InvalidCustomPayload;
@@ -201,7 +202,7 @@ private function handleLicenseKeyCreated(array $payload): void
201202
{
202203
$billable = $this->resolveBillable($payload);
203204

204-
OrderRefunded::dispatch($billable, $payload);
205+
LicenseKeyCreated::dispatch($billable, $payload);
205206
}
206207

207208
/**

0 commit comments

Comments
 (0)