(a) Any promise in writing to furnish support for a child, growing out of a supposed or alleged father and child relationship, shall not require consideration and shall be enforceable according to its terms.
(b) In the best interest of the child or the mother, the court may, and upon request shall, order the promise to be kept in confidence and designate a person or agency to receive and disburse on behalf of the child all amounts paid in performance of the promise.