Walesmaven's idea is good. When you buy something for someone that you know they like and surprise them, it is a gift. It was really nice of you to think of her, but if she had no chance to say yes or no and you made the purchase decision, why would she pay? And it would have made me uncomfortable not knowing how to respond, and I wouldn't like the surprise. Even if your friend liked the ham and was happy about getting it, she may not have chosen to buy it. If a friend texted me and said "That steak you like is on sale for 99 cents a pound, want some?" I would text back "I'll drive over later and have a look." I might have a freezer full of steak, I might have already exceeded my monthly grocery budget, I might be tired of steak or on a diet, or I might be going out of town this week so I don't want to buy any. Or I might drive over right away and buy all I could. But the difference would be that I made my own purchase decision.