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) {