Paychex is paying $22.50 for each share of Paycor in an all-cash deal expected to close by the first half of this year.