mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fixes for trials in subscriptions
This commit is contained in:
parent
9d20c9b2fb
commit
e682017cf4
@ -230,9 +230,9 @@ class SubscriptionService
|
|||||||
- we then return the user to either a predefined user endpoint, OR we return the user to the recurring invoice page.
|
- we then return the user to either a predefined user endpoint, OR we return the user to the recurring invoice page.
|
||||||
*/
|
*/
|
||||||
public function startTrial(array $data)
|
public function startTrial(array $data)
|
||||||
{
|
{nlog($data);
|
||||||
// Redirects from here work just fine. Livewire will respect it.
|
// Redirects from here work just fine. Livewire will respect it.
|
||||||
$client_contact = ClientContact::find($this->decodePrimaryKey($data['contact_id']));
|
$client_contact = ClientContact::find($data['contact_id']);
|
||||||
|
|
||||||
if (!$this->subscription->trial_enabled) {
|
if (!$this->subscription->trial_enabled) {
|
||||||
return new \Exception("Trials are disabled for this product");
|
return new \Exception("Trials are disabled for this product");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user