diff --git a/app/PaymentDrivers/Stripe/UpdatePaymentMethods.php b/app/PaymentDrivers/Stripe/UpdatePaymentMethods.php index b561733347..860b590602 100644 --- a/app/PaymentDrivers/Stripe/UpdatePaymentMethods.php +++ b/app/PaymentDrivers/Stripe/UpdatePaymentMethods.php @@ -74,6 +74,9 @@ class UpdatePaymentMethods { $sources = $customer->sources; + if(!property_exists($sources, 'data')) + return; + foreach ($sources->data as $method) { $token_exists = ClientGatewayToken::where([ 'gateway_customer_reference' => $customer->id,