Skip to content

feat: Add billing status and subscription management - #14

Merged
nfebe merged 5 commits into
mainfrom
feat/paid-billing-release
Oct 23, 2026
Merged

nfebe merged 5 commits into
mainfrom
feat/paid-billing-release

Conversation

@nfebe

@nfebe nfebe commented Oct 20, 2026

Copy link
Copy Markdown
Contributor

Add hosted billing status, usage, and subscription management at published Plus prices. Supply billing screens through an optional UI layer. Access follows confirmed subscription state.

@sourceant

sourceant Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

Code Review Summary

Adds authenticated billing status, portal, and checkout endpoints plus a Nuxt billing UI layer with tests and CI. Published plan prices, free-plan defaults, token allowance, and plan fallback behavior change; access is read from confirmed subscription entitlements. The plugin now requires PHP 8.4 and Laravel 12.

🚀 Key Improvements

  • /cloud/billing/status and /cloud/billing/portal expose subscription state, limits, and AI usage from entitlements.
  • Billing UI shows plan details, usage, limits, and starts checkout with server-confirmed access.
  • Added UI layer workflow and tests covering purchase return, plan selection, and missing bank layer.

📉 Regressions

  • TokenMeterUsage::used() now throws when the owner lacks tokenUsages, so billing status can fail for such owners.
  • plugin.json drops PHP 8.1–8.3 and Laravel 10–11 support, requiring PHP ^8.4 and Laravel ^12.

@sourceant sourceant Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review complete. See the overview comment for a summary.

@sourceant sourceant Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review complete. See the overview comment for a summary.

@nfebe
nfebe force-pushed the feat/paid-billing-release branch from d6d6502 to 6eb3ef8 Compare October 23, 2026 11:05
@nfebe
nfebe merged commit 27caffe into main Oct 23, 2026
1 check 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