Starbucks Corp., the largest coffee-shop chain, will use Square Inc.’s payment system in 7,000 stores and invest $25 million in…