diff --git a/app/PaymentDrivers/Square/CreditCard.php b/app/PaymentDrivers/Square/CreditCard.php index 167744331d76..da53d36a2610 100644 --- a/app/PaymentDrivers/Square/CreditCard.php +++ b/app/PaymentDrivers/Square/CreditCard.php @@ -271,7 +271,7 @@ class CreditCard implements MethodInterface $errors = $api_response->getErrors(); } - if (property_exists($customers, 'customers')) { + if ($customers && property_exists($customers, 'customers')) { return $customers->customers[0]->id; }