From 48f1db60dbb2f0a417a9690eb7e70d2e180b8b43 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Tue, 13 Dec 2022 19:53:13 +1100 Subject: [PATCH] Fixes for update payment methods - Stripe --- 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 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) {