I am using customer repository interface, to fetch some values, of the customer.
I have added a custom attribute "Authnet_Account_Number".
I am trying to fetch the value of it by,
$customer = $this->_customerRepository->getById($customerId);
$authnetAccountNumber = $customer->getCustomAttribute("authnet_account_number");
But when I print $authnetAccountNumber,
it is showing value "object"