Square Wallet[0] used to implement something similar to what you're describing. It used your phone's GPS to register you as near/inside a store and merchants selected you based on a photo you provided. It was pulled in May[1] in favour of Square Order.
[0]: http://allthingsd.com/20120430/paying-with-squares-new-mobil... [1]: http://www.theverge.com/2014/5/12/5709256/square-kills-squar...