mirror of
https://github.com/anikeen-com/id.git
synced 2026-03-14 14:16:31 +00:00
update billable
Signed-off-by: Maurice Preuß (envoyr) <hello@envoyr.com>
This commit is contained in:
@@ -41,7 +41,7 @@ trait ManagesPaymentMethods
|
||||
*/
|
||||
public function hasDefaultPaymentMethod(): bool
|
||||
{
|
||||
return $this->defaultPaymentMethod()->count() > 0;
|
||||
return (bool)$this->defaultPaymentMethod()->data;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -65,7 +65,7 @@ trait ManagesPaymentMethods
|
||||
*/
|
||||
public function billingPortalUrl(string $returnUrl, array $options): string
|
||||
{
|
||||
return $this->request('POST', 'v1/stripe/billing-portal', [
|
||||
return $this->request('POST', 'v1/billing/portal', [
|
||||
'return_url' => $returnUrl,
|
||||
'options' => $options,
|
||||
])->data->url;
|
||||
|
||||
Reference in New Issue
Block a user