Skip to content

Implement signup changes and add Stripe subscription plans#592

Merged
asim merged 2 commits into
mainfrom
claude/add-wallet-transfers-74PHC
May 15, 2026
Merged

Implement signup changes and add Stripe subscription plans#592
asim merged 2 commits into
mainfrom
claude/add-wallet-transfers-74PHC

Conversation

@asim
Copy link
Copy Markdown
Member

@asim asim commented May 15, 2026

No description provided.

claude added 2 commits May 12, 2026 17:12
Signup:
Open by default again. The INVITE_ONLY gate still works when set
but signup no longer requires an invite code. Invite codes are
consumed if provided (for referral tracking) but not required.
The invite request page still works for when INVITE_ONLY is on.

Stripe subscriptions:
Two monthly plans: Starter (£5/month, 500 credits) and Pro
(£10/month, 1,200 credits). Uses Stripe Checkout in subscription
mode. Webhook handles invoice.payment_succeeded to credit the
user's wallet each month. Deduped by invoice ID.

New: CreateSubscriptionSession, SubscriptionPlan type,
handleStripeSubscribe handler, /wallet/stripe/subscribe route.
Topup page shows subscription plans above one-time top-up.

x402 free trial:
First 10 calls per wallet address are free. No payment header
needed if within the trial. Tracked in memory (resets on restart
— acceptable for a trial). After 10 calls, standard x402 payment
is required. X402UseTrialCall/X402TrialRemaining exported for
the MCP quota check.

https://claude.ai/code/session_01GRGLA9yj7BpqKiyi6xFwnm
@asim asim merged commit a1360d3 into main May 15, 2026
2 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.

2 participants