CiviCRM 4.7.27 upgrade undefined method CRM_Price_BAO_PriceField::getVisibilityOptionID()
That method IS present in 4.7.27 - it's at line 892.

If it's not present for you, then either:


There's something squirrelly in your upgrade process - perhaps some file wasn't actually replaced;
You've got some extension or PHP override that's overriding the file in question.