This subdivision shall not be construed to prevent the payment of salaries or other compensation by an authorized agency to the officers or employees thereof; nor shall it be construed to prevent the payment by a person with whom a child has been placed out of reasonable and actual medical fees or hospital charges for services rendered in connection with the birth of such child or of other necessary expenses incurred by the birth mother in connection with or as a result of her pregnancy or the birth of the child, or of reasonable and actual nursing, medical or hospital fees for the care of such child, if such payment is made to the physician, nurse or hospital who or which rendered the services or to the birth mother of the child, or to prevent the receipt of such payment by such physician, nurse, hospital or birth mother. This subdivision shall not be construed to prevent the payment by an adoptive parent, as defined in section one hundred nine of the domestic relations law, of the birth mother's reasonable and actual expenses for housing, maternity clothing, clothing for the child and transportation for a reasonable period not to exceed sixty days prior to the birth and the later of thirty days after the birth or thirty days after the parental consent to the adoption, unless a court determines, in writing, that exceptional circumstances exist which require the payment of the birth mother's expenses beyond the time periods stated in this sentence. This subdivision shall not be construed to prevent the payment by an adoptive parent, as defined in section one hundred nine of the domestic relations law, of reasonable and actual legal fees charged for consultation and legal advice, preparation of papers and representation and other legal services rendered in connection with an adoption proceeding or of necessary disbursements incurred for or in an adoption proceeding. No attorney or law firm shall serve as the attorney for, or provide any legal services to both the birth parent and adoptive parent in regard to the placing out of a child for adoption or in an adoption proceeding. No attorney or law firm shall serve as the attorney for, or provide any legal services to, both an authorized agency and adoptive parent or both an authorized agency and birth parent where the authorized agency provides adoption services to such birth parent or adoptive parent, where the authorized agency provides foster care for the child, or where the authorized agency is directly or indirectly involved in the placing out of such child for adoption.
N.Y. Soc. Serv. Law § 374