Skip to content

Commit

Permalink
Dispatching the correct event name when a license is created (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
abishekrsrikaanth authored Aug 6, 2023
1 parent 7332ad5 commit 97aa0fa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Http/Controllers/WebhookController.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
use LemonSqueezy\Laravel\Events\SubscriptionResumed;
use LemonSqueezy\Laravel\Events\SubscriptionUnpaused;
use LemonSqueezy\Laravel\Events\SubscriptionUpdated;
use LemonSqueezy\Laravel\Events\LicenseKeyCreated;
use LemonSqueezy\Laravel\Events\WebhookHandled;
use LemonSqueezy\Laravel\Events\WebhookReceived;
use LemonSqueezy\Laravel\Exceptions\InvalidCustomPayload;
Expand Down Expand Up @@ -201,7 +202,7 @@ private function handleLicenseKeyCreated(array $payload): void
{
$billable = $this->resolveBillable($payload);

OrderRefunded::dispatch($billable, $payload);
LicenseKeyCreated::dispatch($billable, $payload);
}

/**
Expand Down

0 comments on commit 97aa0fa

Please # to comment.