QR codes were ignored for years. Here’s how smartphones, UPI, and the pandemic turned them into one of the most widely used digital tools.