Skip to content

billing: deactivate metering and the verify gate (dormant) - #86

Merged
ananthb merged 1 commit into
mainfrom
coder-mvp
Oct 13, 2026
Merged

ananthb merged 1 commit into
mainfrom
coder-mvp

Conversation

@ananthb

@ananthb ananthb commented Oct 13, 2026

Copy link
Copy Markdown
Owner

Pulls billing off the product path to move to an MVP, while keeping the code in the tree so it's easy to reverse.

What

  • Pipeline: no credit deduction/restore; AI replies are never blocked on a balance.
  • Wizard: POST /api/wizard/complete no longer requires card verification; the launch step is a plain "Go live" (no pricing/verify card).
  • Dashboard: the Credits tab is gone from the nav.
  • billing/mod.rs: try_deduct / restore_credit are #[allow(dead_code)] with a note (dormant).

Kept dormant

src/billing, api/billing, the Razorpay webhook, the D1 schema (tenant_billing, payments, pricing_config), and Plan/verified_at remain — re-enabling is re-wiring the calls, not a rebuild.

Notes

  • No essentials/health change: Razorpay was never in the required set, so Google sign-in already works without the keys.
  • Regenerated public/*.html for the new bundle's SRI hash.

Verification

  • cargo test --lib: 120 pass; cargo clippy: only the pre-existing host-only large_enum_variant false positive
  • elm make + elm-format --validate: clean

Billing is off the product path: the pipeline no longer deducts or
restores credits and never blocks an AI reply on a balance, the wizard
no longer requires card verification to finish, and the dashboard drops
the Credits tab.

The billing modules, D1 schema and /api/billing routes are left in place
(dormant) so this is easy to reverse.
@ananthb
ananthb enabled auto-merge (squash) October 13, 2026 12:59
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
concierge 1bc6378 Oct 13 2026, 01:02 PM

@ananthb
ananthb merged commit d6c4a4d into main Oct 13, 2026
8 checks passed
@ananthb
ananthb deleted the coder-mvp branch October 13, 2026 13:04
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