Chinese urbanites began paying for real-world purchases with bar codes on their phones, part of a mobile payments revolution unseen anywhere else. Armies of food deliverymen and on-demand masseuses riding electric scooters clogged the streets of Chinese cities. They represented a tidal wave of online-to-offline (O2O) startups that brought the convenience of e-commerce to bear on real-world services like restaurant food or manicures.