With the help of 2-D barcode scanners, Starbucks this year began letting people pay in its U.S. stores with a smartphone app. The app, which ties to Starbucks' loyalty and payment cards, has done more than 20 million transactions in 2011.