From 5c2326e49285b34d5d18a73475f0cab472259ca6 Mon Sep 17 00:00:00 2001 From: Peter Papp Date: Mon, 17 Aug 2020 10:04:47 +0200 Subject: [PATCH] fixed non-vuefilemanager stripe plans loading --- app/Services/StripeService.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Services/StripeService.php b/app/Services/StripeService.php index a781073c..5f8945d9 100644 --- a/app/Services/StripeService.php +++ b/app/Services/StripeService.php @@ -202,7 +202,7 @@ class StripeService $product = $this->stripe->products()->find($plan['product']); // Push data to $plan container - if ($product['active']) { + if ($product['active'] && isset($product['metadata']['capacity'])) { array_push($plans, [ 'plan' => $plan, 'product' => $product, @@ -234,7 +234,7 @@ class StripeService $product = $this->stripe->products()->find($plan['product']); // Push data to $plan container - if ($product['active']) { + if ($product['active'] && isset($product['metadata']['capacity'])) { array_push($plans, [ 'plan' => $plan, 'product' => $product,