fix: stripe invoice paid webhook

fix: prepare customer initiated tier change
fix: separate view for subscriptions
This commit is contained in:
Andras Bacsai committed 2024-02-23 11:21:14 +01:00
1 parent ce09ef8848
commit b59e47dcf9
11 files changed
+108 -59

No files matched your search

+9 -1
View File
@@ -7,6 +7,13 @@ use Livewire\Component;
class Actions extends Component
{
public $server_limits = 0;
public function mount()
{
$limits = currentTeam()->limits;
$this->server_limits = data_get($limits, 'serverLimit', 0);
}
public function cancel()
{
try {
@@ -69,7 +76,8 @@ class Actions extends Component
return handleError($e, $this);
}
}
public function stripeCustomerPortal() {
public function stripeCustomerPortal()
{
$session = getStripeCustomerPortalSession(currentTeam());
redirect($session->url);
}