From 535d9ae471855d105711231decdbd66d2ba71478 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Mon, 22 Mar 2021 14:03:32 +0100 Subject: [PATCH] Update data passed to startTrial --- app/Http/Livewire/BillingPortalPurchase.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/Http/Livewire/BillingPortalPurchase.php b/app/Http/Livewire/BillingPortalPurchase.php index 950065bd8551..0ad02c1683b0 100644 --- a/app/Http/Livewire/BillingPortalPurchase.php +++ b/app/Http/Livewire/BillingPortalPurchase.php @@ -300,6 +300,8 @@ class BillingPortalPurchase extends Component { return $this->billing_subscription->service()->startTrial([ 'email' => $this->email ?? $this->contact->email, + 'quantity' => $this->quantity, + 'contact_id' => $this->contact->id, ]); }