Skip to content

Commit 8e70ac1

Browse files
authored
Revert "do not create a license upon inactive subscription creation (#147)" (#148)
This reverts commit fc5f8de.
1 parent fc5f8de commit 8e70ac1

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

app/Jobs/HandleCustomerSubscriptionCreatedJob.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
use Illuminate\Foundation\Bus\Dispatchable;
99
use Illuminate\Queue\InteractsWithQueue;
1010
use Illuminate\Queue\SerializesModels;
11-
use Illuminate\Support\Facades\Log;
1211
use Laravel\Cashier\Cashier;
1312
use Laravel\Cashier\Events\WebhookHandled;
1413
use Laravel\Cashier\SubscriptionItem;
@@ -30,12 +29,6 @@ public function handle(): void
3029
return;
3130
}
3231

33-
if ($stripeSubscription->status !== 'active') {
34-
Log::info("The subscription for customer [{$stripeSubscription->customer}] is not active. Not proceeding to license creation.");
35-
36-
return;
37-
}
38-
3932
/** @var User $user */
4033
$user = Cashier::findBillable($stripeSubscription->customer);
4134

0 commit comments

Comments
 (0)