Split it,
settle it.

Tally keeps track of who paid for what and works out the fewest payments that clear the group. It runs on your phone, and it is happy to stay there.