BEIJING—Chinese internet regulators scolded the country’s leading mobile-payments company for compromising its customers’ privacy, putting pressure on firms to better protect personal data in a society subject to heavy state surveillance.

The Cyberspace Administration of China said Wednesday that it had summoned representatives of Alibaba Group Holding Ltd. affiliate Ant Financial Services Group to dress them down for automatically enrolling users in its credit-scoring system.

...