diff --git a/app/PaymentDrivers/Stripe/UpdatePaymentMethods.php b/app/PaymentDrivers/Stripe/UpdatePaymentMethods.php index 7777da7b7e17..244be05bfc1d 100644 --- a/app/PaymentDrivers/Stripe/UpdatePaymentMethods.php +++ b/app/PaymentDrivers/Stripe/UpdatePaymentMethods.php @@ -147,7 +147,7 @@ class UpdatePaymentMethods { $sources = $customer->sources ?? false; - if (!$customer || is_null($sources) || !property_exists($sources, 'data')) { + if (!$customer || is_null($sources) || !$sources || !property_exists($sources, 'data')) { return; }