Nick Martinez and the Padres finalized a $26 million, three-year contract for the pitcher to remain with San Diego.