Skip to content

Billing: add credits (one wallet with gpushed); keep every plan tile - #16

Merged
mehfuzh merged 2 commits into
mainfrom
billing-add-credits
Nov 19, 2026
Merged

mehfuzh merged 2 commits into
mainfrom
billing-add-credits

Conversation

@mehfuzh

@mehfuzh mehfuzh commented Nov 19, 2026

Copy link
Copy Markdown
Member

What

  • Credits section for every account: plan credits left this month, added credits, and Add credits ($10–$100) → Checkout on the account's own Stripe customer. Added credits are spent after the plan's, by cloud models, web searches and gpushed, and don't expire. Needs smartloop-labs/slp-api#182 (deployed).
  • Billing history shows whenever there are invoices (a Free account that added credits has some); each row says Plan or Credits added (gpushed top-ups included).
  • Every plan tile stays: the current one is marked, higher ones say "Upgrade to", lower ones "Switch to". /upgrade opens the plain portal only for the plan you're already on; any other plan gets Stripe's plan-change confirmation.

Testing

tsc --noEmit clean; next build passes.

A Credits section on the billing page for every account: plan credits
left this month, added credits, and "Add credits" ($10-$100), which opens
Checkout on the account's own Stripe customer. Added credits are spent
after the plan's, by cloud models, web searches and gpushed, and don't
expire.

Billing history now shows whenever there are invoices (a Free account
that added credits has some), and labels each row Plan or Credits added
(gpushed top-ups included).
The plan cards only showed plans above the current one, so upgrading
hid your own plan's tile (and on Max, all of them). Now every plan is
shown: the current one marked, higher ones 'Upgrade to', lower ones
'Switch to'. /upgrade opens the plain portal only for the plan you're
already on; any other plan, up or down, gets Stripe's plan-change
confirmation (or Checkout when not paying).
@mehfuzh
mehfuzh merged commit ba4ab11 into main Nov 19, 2026
1 check passed
@mehfuzh
mehfuzh deleted the billing-add-credits branch November 19, 2026 05:35
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