From 50f08362a3219e4f10378d573f32ad42c45efa2c Mon Sep 17 00:00:00 2001 From: David Bomba Date: Wed, 21 Sep 2022 20:35:36 +1000 Subject: [PATCH] Minor fixes for stripe imports --- app/PaymentDrivers/Stripe/UpdatePaymentMethods.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/PaymentDrivers/Stripe/UpdatePaymentMethods.php b/app/PaymentDrivers/Stripe/UpdatePaymentMethods.php index 860b590602fb..4424ca40eee7 100644 --- a/app/PaymentDrivers/Stripe/UpdatePaymentMethods.php +++ b/app/PaymentDrivers/Stripe/UpdatePaymentMethods.php @@ -74,7 +74,7 @@ class UpdatePaymentMethods { $sources = $customer->sources; - if(!property_exists($sources, 'data')) + if(!$customer || !property_exists($sources, 'data')) return; foreach ($sources->data as $method) {