The first case means that the friends purchased something. The second case means that the friends took care of a debt. In the second case, the thing that was purchased is understood by context.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.