diff --git a/app/PaymentDrivers/Stripe/UpdatePaymentMethods.php b/app/PaymentDrivers/Stripe/UpdatePaymentMethods.php index ed333de662f2..a76b807c022b 100644 --- a/app/PaymentDrivers/Stripe/UpdatePaymentMethods.php +++ b/app/PaymentDrivers/Stripe/UpdatePaymentMethods.php @@ -74,7 +74,7 @@ class UpdatePaymentMethods { $sources = $customer->sources; - if(!$customer || !property_exists($sources, 'data')) + if(!$customer || is_null($sources) || !property_exists($sources, 'data')) return; foreach ($sources->data as $method) {