Skip to content

Commit

Permalink
fix: expired subscriptions can't be managed on paddle
Browse files Browse the repository at this point in the history
  • Loading branch information
bohdan-shulha committed Aug 28, 2024
1 parent 8bf83d0 commit 396b5ca
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/Http/Controllers/TeamBillingController.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ public function show(Team $team, Request $request)
$customer = $team->createAsCustomer();

$subscription = $team->subscription();
if (! $subscription?->valid()) {
$subscription = null;
}

$nextPayment = $subscription?->nextPayment();

Expand Down

0 comments on commit 396b5ca

Please sign in to comment.