feat: E6 — Monetization ## Goal Creators can earn. Spooool can take a #276
Closed
fly-productivity-manager[bot] wants to merge 1 commit into
Closed
feat: E6 — Monetization
## Goal
Creators can earn. Spooool can take a #276fly-productivity-manager[bot] wants to merge 1 commit into
fly-productivity-manager[bot] wants to merge 1 commit into
Conversation
## Goal Creators can earn. Spooool can take a [fly-dev run run_506c74aa49e34640ac1a6ff4062f79df]
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
spooool | ffd1b41 | Jul 06 2026, 08:04 AM |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
All 1058 tests pass. TypeScript isn't installed as a standalone binary in this workspace, but the tests serve as the validation.
Here's what I found and what changed:
The existing implementation was ~95% complete. All the core pieces were already built:
account.ts)POST /api/videos/:id/tip)POST /api/channels/:u/membership)payout.created/payout.paid)The one gap I fixed:
GET /api/account/earningsinaccount.tswas returningnullforgrossEarningsUsdandnetPayoutsUsdwith a// ALO-TODOcomment. I replaced those with real parallel D1 queries againstcreator_earningsandcreator_payouts, year-scoped viaDate.UTC(year, 0, 1)bounds. Added 6 tests covering it.The "Done when" checklist from the spec is fully satisfied: a creator can complete Polar onboarding, a viewer can subscribe via Polar Checkout, the webhook writes to D1, and the creator sees real earnings in their payouts dashboard.
Tests
Opened automatically by fly-dev run run_506c74aa49e34640ac1a6ff4062f79df.