In China today, most people pay with their phones. Every market stall has a small square payment code taped to the front, and customers scan it and pay in a second. Cash is still official money, and shops are not supposed to refuse it, but small sellers keep very little change.
The biggest note is the red hundred-yuan note. A cash machine usually gives nothing else. At a breakfast stall, where a bun costs a couple of kuài, a hundred can be almost impossible to change.
Older people often still prefer cash, and many grandparents keep a tin of neatly folded small notes at home. When nobody else has change, ask a grandparent.