Skip to content

Revert "Do not create a license upon inactive subscription creation" #148

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 23, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions app/Jobs/HandleCustomerSubscriptionCreatedJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
use Illuminate\Foundation\Bus\Dispatchable;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Queue\SerializesModels;
use Illuminate\Support\Facades\Log;
use Laravel\Cashier\Cashier;
use Laravel\Cashier\Events\WebhookHandled;
use Laravel\Cashier\SubscriptionItem;
Expand All @@ -30,12 +29,6 @@ public function handle(): void
return;
}

if ($stripeSubscription->status !== 'active') {
Log::info("The subscription for customer [{$stripeSubscription->customer}] is not active. Not proceeding to license creation.");

return;
}

/** @var User $user */
$user = Cashier::findBillable($stripeSubscription->customer);

Expand Down