Track buy-ins and top-ups. At the end it works out who pays who — and who had the best night.
Games live on the server — anyone with the code can keep adding and settle later, even after the host closes the app.