mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-15 00:17:16 +00:00
fix: stripe invoice paid webhook
fix: prepare customer initiated tier change fix: separate view for subscriptions
This commit is contained in:
1 parent
ce09ef8848
commit
b59e47dcf9
11 files changed
+108
-59
No files matched your search
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user