Membership: one pay-what-you-want Supporter tier replaces Bronze–Diamond #2

Merged
eric merged 1 commits from pay-what-you-want into main 2026-11-18 20:58:59 +00:00
Member

Replaces the five paid tiers with a single Supporter membership where members choose their own monthly amount. Eric approved this on 2026-11-18. The aim is to fit how the work actually happens: drops when they're ready, not perks on a schedule.

What members see

  • Open Lab stays free. Supporter is the only paid option. An amount field defaults to $8/month and accepts $3–$500.
  • Every amount gets the same benefits:
    • optional thanks in the credits of every drop
    • supporter-only posts on Discourse and Harmony, including work in progress
    • early builds and playtests when they exist
  • New copy: "I work in bursts, not on a schedule… the work ships as drops."
  • Giveaways and polls are gone from the page and benefits. This removes the paid-tier giveaway issue flagged in the income report.
  • A new FAQ explains what happened to Bronze–Diamond.
  • The homepage says "Supporters" instead of "Bronze and above".

How it works

  • Stripe:
    • Checkout creates a monthly USD Price for the chosen amount on the existing Subscription product prod_Sc9N5J0vNAdLCn.
    • Billing sync grants Supporter only for Prices that checkout could have created: that product, USD, monthly, and within the bounds.
    • If an open Checkout session has a different amount, it is expired and replaced.
  • Crypto (SHKeeper): prepayments ask for an amount within the same bounds and store it on the invoice.
  • Existing members:
    • Bronze keeps its original Price as price_id, so current Bronze subscriptions simply become Supporter.
    • Silver–Diamond are marked "hidden": true. They are not offered and can't be bought, but existing subscriptions and prepaid terms keep their access until they end.
  • Settings validation:
    • new optional pay_what_you_want keys (product_id plus string amounts with 1 ≤ min ≤ suggested ≤ max ≤ 10000)
    • a boolean hidden
  • The new members/pricing.py holds amount parsing and Price acceptance in one place.

Tests

  • sh ci/run-tests.sh membership: 234 tests, OK (5 skipped)
  • sh ci/run-tests.sh postgres: OK
  • sh ci/run-tests.sh site: 75 pass
  • New test_pay_what_you_want.py covers:
    • amount parsing and bounds
    • Price acceptance: wrong product, currency, interval or amount is rejected
    • the Checkout price_data and idempotency key
    • open-session reuse and replacement
    • invalid amounts never reaching Stripe
    • retired tiers returning 404 while still being honoured in billing
    • crypto amounts
    • settings validation, including the deployed tiers.eom.json

Deploying

  1. Merge this and build/deploy the membership image.
  2. Then merge DevOps/ansible-role-www (the tier config) and run the www playbook.

Doing it in this order is safe: the old app ignores the new keys, and the new app works with the old config.

Decisions to confirm:

  • the $3 minimum, $8 suggested and $500 maximum
  • that Supporters get the same Level 1 group and services as Bronze did. Service groups are identical at every level today.

🤖 Generated with Claude Code

Replaces the five paid tiers with a single **Supporter** membership where members choose their own monthly amount. Eric approved this on 2026-11-18. The aim is to fit how the work actually happens: drops when they're ready, not perks on a schedule. ## What members see - Open Lab stays free. Supporter is the only paid option. An amount field defaults to **$8/month** and accepts **$3–$500**. - Every amount gets the same benefits: - optional thanks in the credits of every drop - supporter-only posts on Discourse and Harmony, including work in progress - early builds and playtests when they exist - New copy: "I work in bursts, not on a schedule… the work ships as drops." - **Giveaways and polls are gone** from the page and benefits. This removes the paid-tier giveaway issue flagged in the income report. - A new FAQ explains what happened to Bronze–Diamond. - The homepage says "Supporters" instead of "Bronze and above". ## How it works - **Stripe:** - Checkout creates a monthly USD Price for the chosen amount on the existing Subscription product `prod_Sc9N5J0vNAdLCn`. - Billing sync grants Supporter only for Prices that checkout could have created: that product, USD, monthly, and within the bounds. - If an open Checkout session has a different amount, it is expired and replaced. - **Crypto (SHKeeper):** prepayments ask for an amount within the same bounds and store it on the invoice. - **Existing members:** - Bronze keeps its original Price as `price_id`, so current Bronze subscriptions simply become Supporter. - Silver–Diamond are marked `"hidden": true`. They are not offered and can't be bought, but existing subscriptions and prepaid terms keep their access until they end. - **Settings validation:** - new optional `pay_what_you_want` keys (`product_id` plus string amounts with 1 ≤ min ≤ suggested ≤ max ≤ 10000) - a boolean `hidden` - The new `members/pricing.py` holds amount parsing and Price acceptance in one place. ## Tests - `sh ci/run-tests.sh membership`: 234 tests, OK (5 skipped) - `sh ci/run-tests.sh postgres`: OK - `sh ci/run-tests.sh site`: 75 pass - New `test_pay_what_you_want.py` covers: - amount parsing and bounds - Price acceptance: wrong product, currency, interval or amount is rejected - the Checkout `price_data` and idempotency key - open-session reuse and replacement - invalid amounts never reaching Stripe - retired tiers returning 404 while still being honoured in billing - crypto amounts - settings validation, including the deployed `tiers.eom.json` ## Deploying 1. Merge this and build/deploy the membership image. 2. Then merge DevOps/ansible-role-www (the tier config) and run the www playbook. Doing it in this order is safe: the old app ignores the new keys, and the new app works with the old config. **Decisions to confirm:** - the $3 minimum, $8 suggested and $500 maximum - that Supporters get the same Level 1 group and services as Bronze did. Service groups are identical at every level today. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
claude added 1 commit 2026-11-18 20:40:47 +00:00
Members choose a monthly amount ($3-$500, suggested $8). Stripe Checkout
creates a monthly USD Price for that amount on the existing Subscription
product; billing sync accepts only such Prices (right product, USD, monthly,
within bounds). SHKeeper prepayments take the same chosen amount.

Bronze becomes Supporter and keeps its original Price, so existing Bronze
subscriptions continue. Silver-Diamond are retired with "hidden": true: not
offered and not buyable, but existing subscriptions and prepaid terms keep
their access until they end.

The members page now describes drops and no fixed schedule, and drops the
tier giveaways and polls. Homepage copy says "Supporters" instead of
"Bronze and above".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
eric merged commit 1b19c6174d into main 2026-11-18 20:58:59 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DevOps/www#2