Cardtronics, which owns Allpoint, is one of the biggest cash-machine operators in the world. NCR Corp is coming close to a deal to acquire Cardtronics PLC after outbidding a pair of investment firms that had earlier agreed to buy the ATM operator.

NCR is completing an acquisition that would give Cardtronics a value of $39 a share, or roughly $1.7 billion, according to people familiar with the matter. As always, the talks could fall apart before the deal is complete.

The investment firms-private-equity behemoth Apollo Global Management Inc. and Hudson Executive Capital LP-declined to increase their previous offer of $35 a share, paving the way for the impending deal.

Cardtronics, with 285,000 ATMs in 10 countries, is one of the biggest cash-machine operators in the world. A deal would pair the company with Atlanta-based NCR, which makes ATMs as well as point-of-sale systems and self-service kiosks for businesses such as restaurants and retailers.