After more than two years of negotiations, wooing shareholders, and fending off rivals, Hertz Global Holdings said Sunday it will buy Dollar Thrifty Automotive Group in a deal worth $2.3 billion.

Hertz is paying $87.50 per Dollar Thrifty share in cash under the terms of the agreement, which represents an 8 percent premium over the target’s Friday closing price.