Aditya Dutt Pandey

Product decision · 2026

Published · 4 min read

We gave users a choice. That was the bug.

The hardest problem on a recent tunyt event had no stack trace. Nothing crashed, every line of code did what we wrote, and people still got stuck. Four decisions about team payments, why we made each one, and the one we got wrong.

The hardest problem on a recent tunyt event had no stack trace. Nothing crashed, no alert fired, every line of code did what we wrote, and people kept writing in, stuck, asking questions we couldn't answer for them.

It was a team event. People registered as teams and the team had to pay. That turned out to be four separate decisions, and a run of reasonable ones added up to a bad one.

The leader pays

The first plan was the simplest thing that could work: the team leader pays for everyone. One team, one payment, one receipt.

In a payment system every extra state is a place for money to get lost, and this design had almost none. A team was paid or it wasn't. I still think that was right.

Teams can split it too

After a lot of back and forth inside our team, we added a second option: split the payment so every member pays for their own ticket. It felt friendlier. Nobody has to front money for four people and chase the rest.

So we shipped both and let the team leader pick. That was the bug, and I didn't see it yet.

What people did

Two problems showed up that looked unrelated.

The first was a team that changed shape. A team of three formed and the leader paid for all three. Then they removed one member, added two, and asked us why they were being asked to pay for two more people. From their side they'd paid for "the team" and the team had changed. From our side three tickets were paid for, one belonged to someone no longer on the team, and two new people had none. The removed person still held a valid ticket, and nobody on the team knew.

The second was a payment button that never came. Members wrote in saying they had no button, no link, no email. Support asked the same thing every time: did your team leader choose to split, or to pay for everyone? Almost every time, nobody knew.

We said no

The first problem pulled us toward building more: refunds, ticket transfers, moving a ticket between people, handling teams that change plans halfway through.

Each of those is its own small product. Each moves money or ownership, and each has its own edge cases, support load and new ways to get a payment wrong. We'd spend weeks supporting something a few teams had stumbled into.

So we built none of it and kept the model we had. It's the decision I'm surest about, and it's hard to make with someone upset in your inbox. A small team that says yes to every edge case ends up with a product made of edge cases.

We moved the choice

Saying no didn't fix the second problem, and that was the real one.

When I drew the flow as states it was obvious. With the leader choosing at runtime, a team could be in any mix of: no choice yet, leader pays, or split; paid, partly paid or unpaid; same members as when it paid, or different ones. We understood every state. The people in them couldn't see any of it. Every support message was someone stuck in a state the product never showed them.

So the organiser now decides, once per event, how teams pay: the leader pays for everyone, or it's split and each person pays as they join. Attendees never make the choice, so they can't be confused about it, and "no choice yet" isn't a state any more.

We had almost all the logic already. In the end it was mostly a flag on the event:

// Simplified. Set by the organiser when they create the event.
type TeamPayment = "LEADER_PAYS" | "SPLIT";

One more rule closes the gap that started all this. If a team has already paid and someone new joins, that person buys their own ticket. A settled payment stays settled.

What I took from it

Every choice you give users is a state you have to show them. We thought we were adding flexibility. We added a hidden state that only one person on the team could see. How a team pays is the organiser's call, and when we let whoever clicked first decide, everyone else inherited a choice they never made.

When support asks the same question over and over, the product is asking it in the wrong place. "Did your leader split or pay?" belonged on the event page.

By , CTO of tunyt

← All writing