diff --git a/app/Http/Livewire/BillingPortalPurchasev2.php b/app/Http/Livewire/BillingPortalPurchasev2.php index eb024667c478..cd70adc27ff5 100644 --- a/app/Http/Livewire/BillingPortalPurchasev2.php +++ b/app/Http/Livewire/BillingPortalPurchasev2.php @@ -424,7 +424,7 @@ class BillingPortalPurchasev2 extends Component $client_repo = new ClientRepository(new ClientContactRepository()); $data = [ 'name' => '', - 'group_settings_id' => $this->encodePrimaryKey($this->subscription->group_id), + 'group_settings_id' => $this->subscription->group_id, 'contacts' => [ ['email' => $this->email], ], diff --git a/app/Services/Client/PaymentMethod.php b/app/Services/Client/PaymentMethod.php index 7f7d6c4933bc..4c7d4517d44a 100644 --- a/app/Services/Client/PaymentMethod.php +++ b/app/Services/Client/PaymentMethod.php @@ -64,6 +64,9 @@ class PaymentMethod if ($company_gateways || $company_gateways == '0') { $transformed_ids = $this->transformKeys(explode(',', $company_gateways)); + if($company_gateways == '0') + $transformed_ids = []; + $this->gateways = $this->client ->company ->company_gateways @@ -93,6 +96,11 @@ class PaymentMethod if ($company_gateways || $company_gateways == '0') { $transformed_ids = $this->transformKeys(explode(',', $company_gateways)); + if($company_gateways == '0') { + $transformed_ids = []; + } + + $this->gateways = $this->client ->company ->company_gateways diff --git a/resources/views/portal/ninja2020/quotes/includes/actions.blade.php b/resources/views/portal/ninja2020/quotes/includes/actions.blade.php index c709f8a5b45e..7fd7d41c10c0 100644 --- a/resources/views/portal/ninja2020/quotes/includes/actions.blade.php +++ b/resources/views/portal/ninja2020/quotes/includes/actions.blade.php @@ -29,7 +29,7 @@ @yield('quote-not-approved-right-side')