From e682017cf4e32151659a45092ef9a3b8874a871e Mon Sep 17 00:00:00 2001 From: David Bomba Date: Sat, 14 Oct 2023 08:33:27 +1100 Subject: [PATCH] Fixes for trials in subscriptions --- app/Services/Subscription/SubscriptionService.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Services/Subscription/SubscriptionService.php b/app/Services/Subscription/SubscriptionService.php index 64b13fa38db3..901b970f0bfb 100644 --- a/app/Services/Subscription/SubscriptionService.php +++ b/app/Services/Subscription/SubscriptionService.php @@ -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. */ public function startTrial(array $data) - { + {nlog($data); // 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) { return new \Exception("Trials are disabled for this product");