There's a difference between offering physical goods (like McDonalds and Starbucks) vs. digital goods. Both Google and Apple don't allow circumventing their payment mechanism for anything digital (e-books, music, etc.), while showing some lenience for physical ones.