W01 · vers1ons · Money
How money moves through vers1ons
One license sale on vers1ons pays several people at once, from a single checkout. I built the credit ledger and how it settles, and I led getting every contributor paid. This is the money side, end to end.
- Role
- Product engineer. The credit ledger, its settlement and the admin page are mine. I extended the Stripe settlement pipeline.
- Built
- Credit and split checkout in 4 days, solo. Contributor payouts in 2.5 weeks, about 18 PRs.
- Team
- Under 10 people
- Status
- Live
Everyone who gets paid
Every sale is split the way the license says, so the money can't disagree with it. vers1ons pays each person their share directly, instead of paying the artist a lump sum to split by hand.
01 · Buyer
Buys a remix license
Credit first, then a card for the rest.
02 · Checkout
One sale, one transaction
Credit is taken before the card is charged.
03 · Settles
Exactly once
Then the license is granted, and the money moves.
Recording
Paid directlyThe artist and contributors
Shares come from the signed split sheet, and the recording adds to 100%.
Composition
Paid directlyWriters and publishers
The composition adds to 100% too. A publisher takes a cut of their writer's share.
No account yet
HeldCredited contributors
Their share is held until they claim it. An hourly sweep pays anything still held once they can be paid.
Platform
Feevers1ons
A fee added at checkout, and a percentage of the royalties once a remix earns.
After the remix is released
Release
Remix out in stores
Delivered with the license it was made under.
Streams and sales
Royalties come in
Each sale and stream is a payment to split.
Upstream
Everyone in the chain
The remixer, the first remixer and the original, each by the grant the remix inherited, and vers1ons takes its percentage.
One purchase, in the ledger
Credit is a spendable balance in a buyer's Wallet. An admin can grant it, even before someone signs up, which is how prize and giveaway licenses became real transactions. At checkout it pays for all of a license or part of it, and a card pays the rest. Try it.
Platform credit
$25.00
Spendable at checkout. It can't be withdrawn.
- License
- $69.00
- From credit
- $25.00
- From card
- $44.00
Ledger · append-only, signed cents
| Entry | For | Amount | Status |
|---|---|---|---|
| No entries yet. Without credit, the card pays it all. | |||
| Balance, the sum of the entries | $0.00 | ||
Events
Buy the license to see the steps.
A reconcile job runs every 15 minutes and settles anything an event missed.
Example amounts. The real ledger stores signed cents.
Why it can't spend twice
A money product can't be mostly right. These are the rules that keep the ledger exact, and each one is enforced by the code or the database, not by hoping.
01
Append-only
Grants, spends and reversals are only ever added, never edited. The balance is their sum, in signed cents.
02
Locks in a set order
A sum has no row to lock, so every write that can lower a balance locks the owner first, always in the same documented order.
03
The database says no
Partial unique indexes make a second spend or a second reversal of the same sale impossible, not just unlikely. A spend records the pool it came from, so a sibling profile can't spend the same money again.
04
Credit first
Credit is taken before the card is charged. If taking it fails, the card isn't charged at all, and a declined card doesn't take the credit twice.
05
Settles from an event
A sale settles from a deterministic event instead of waiting on a webhook. A card sale settles from Stripe's event, and a sale paid only with credit settles as its own.
06
Reconciled every 15 minutes
A reconcile job runs every 15 minutes and settles anything an event missed.
07
Clean reversals
A sale that dies before settling hands back the exact credit, to the pool it came from, in the same transaction that cancels it.
08
Replay-audited
I replayed every side effect of settlement to check each one happens once. That is how I found and fixed a missing duplicate guard.
Getting every contributor paid
When a license sells, credited contributors who don't have an account still get their share, on the recording side and the composition side alike. I wrote the PRD and led it, including protection against account takeover.
01 · Sale
A license sells, and a credited contributor, on the recording or the composition, has no account yet.
02 · Held
Their share is held for them, against the email they were credited under.
03 · Claim link
They get a claim link by email.
04 · Verify
They verify twice, with a code sent to that email and a code by text message.
05 · Paid
They claim into their own Stripe account, and the held money follows.
- A wrong email can be fixed, and the held money moves with it.
- If someone says it wasn't meant for them, the money is frozen and the uploader is told.
- Payout setup is checked on the server everywhere money moves.
Drops, with rules the server keeps
Drops are time-boxed remix contests. In a drop, the license is the entry fee, and the artist is paid for every license sold, whoever wins.
The window
The purchase window is enforced on the server, not just in the page.
One entry each
One live submission per buyer, enforced in the database.
Terms frozen
Release terms are frozen at the moment of purchase, so a buyer's deal can't change underneath them.
Built to the same standard
On phones
An 8-PR mobile overhaul over 9 days made the whole app usable on phones, purchase flow included. App usage went up 40%.
One design system
Checkout uses the design system I led a redesign of. 40+ components, and a CI check that keeps new screens consistent.
Accessibility
I audited the app against accessibility standards and shipped the fixes.
Next.js · React · TypeScript · Tailwind · shadcn/Radix · Framer Motion · tRPC · Postgres · Drizzle · Inngest · Stripe Connect
The motion on this page uses Framer Motion, as the vers1ons app does.