Skip to content

premium: promo codes, 50OFF for 50% off every term - #184

Merged
ralyodio merged 3 commits into
mainfrom
feat/promo-50off
Oct 6, 2026
Merged

ralyodio merged 3 commits into
mainfrom
feat/promo-50off

Conversation

@ralyodio

@ralyodio ralyodio commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

Promo codes for Premium. 50OFF takes 50% off every term ($1 day → $0.50, $30 month → $15, $300 year → $150).

  • PREMIUM_PROMO_CODES = CODE:percent[:YYYY-MM-DD], default 50OFF:50; empty string ends it
  • /premium has a promo field; /premium?promo=50OFF links pre-apply it; /api/v1/premium?promo=50OFF quotes it
  • checkout charges the better of referral vs promo, never both; promo_code lands in payment metadata
  • tests: promo parser + checkout/page/API cases; full suite 2340 pass, 0 fail

🤖 Generated with Claude Code

ralyodio and others added 3 commits October 6, 2026 12:00
PREMIUM_PROMO_CODES (CODE:percent[:end-date]), default 50OFF:50. Typed at
/premium or carried as ?promo=, quoted on the page and /api/v1/premium,
charged at checkout and recorded as promo_code in the payment metadata.
Never stacks with a referral; the bigger discount wins.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ralyodio
ralyodio merged commit 2d58208 into main Oct 6, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant