Repository navigation
feat: remove billing/payment layer from open-core (cloud-only) - #65
Merged
Merged
Conversation
The community self-host edition now ships with ZERO payment code and no required RAZORPAY_* env. All Razorpay/billing surface is deleted; hosted billing lives outside this repo. Deleted (API): - routes/razorpay.ts, routes/billing.ts - lib/razorpay/ (client, customer, plan-state, plans, products, webhook-handlers) - lib/billing/seats.ts + lib/billing/currency.ts (only imported by the deleted billing route) - scripts/razorpay-assign-plan.ts, create-razorpay-plans.ts, razorpay-bootstrap.ts - tests/razorpay-webhook.test.ts Deleted (web): - components/pricing/ (incl. PricingCards.tsx) - components/settings/BillingPanel.tsx - lib/pricing.ts - pages/app/settings/billing.astro Neutralized core importers (build stays green): - server.ts: dropped razorpayRoutes + billingRoutes import/register. - lib/billing/sync-seats.ts: syncSubscriptionSeats is now an exported no-op (no subscriptions on self-host); imports no razorpay module. Core call sites in members/invitations/accept-invite-pending unchanged. - config/env.ts: RAZORPAY_KEY_ID / _KEY_SECRET / _WEBHOOK_SECRET are now .optional() instead of required. - apps/api/package.json: dropped the unused razorpay dependency. - .env.example: removed the RAZORPAY_* placeholders (now optional/unset). Hid dangling billing/pricing nav (resolves intent of #3): - SettingsNav.tsx, SettingsLayout.astro: removed the Billing entry. - CommandPalette.tsx: removed the "open billing" command. - PublicHeader.astro: removed the /pricing link. Boundary: extended verify-core-only.sh denylist to include routes/razorpay|routes/billing|lib/razorpay/. Untouched (community-license entitlement path stays intact): lib/entitlements.ts, lib/entitlement-gate.ts, routes/licenses.ts, lib/license-key.ts, plugins/subscription.ts, plugins/free-limits.ts, lib/workspace.ts, db/schema.ts (billing columns stay harmlessly). Verified: pnpm --filter @boppl/api build (tsc strict) exit 0; pnpm --filter @boppl/web build (astro) exit 0; verify-core-only.sh CLEAN; license-key unit test 4/4; zero dangling imports of deleted modules. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Signed-off-by: nbkdoesntknowcoding <nischaybk@theboringpeople.in>
This was referenced Jul 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Removes the entire payment/billing layer from the open-core repo so the community self-host edition ships with ZERO payment code and no required
RAZORPAY_*env. Hosted billing lives outside this repo (cloud-only). This is a delete-from-public carve — core-only, no ee side.Deleted
API
routes/razorpay.ts,routes/billing.tslib/razorpay/(client, customer, plan-state, plans, products, webhook-handlers)lib/billing/seats.ts+lib/billing/currency.ts(only imported by the deleted billing route)scripts/razorpay-assign-plan.ts,create-razorpay-plans.ts,razorpay-bootstrap.tstests/razorpay-webhook.test.tsWeb
components/pricing/(incl.PricingCards.tsx)components/settings/BillingPanel.tsxlib/pricing.tspages/app/settings/billing.astroNeutralized core importers (build stays green)
server.ts— droppedrazorpayRoutes+billingRoutesimport/register.lib/billing/sync-seats.ts—syncSubscriptionSeatsis now an exported no-op (no subscriptions on self-host); imports no razorpay module. Core call sites inmembers.ts/invitations.ts/_internal/accept-invite-pending.tsunchanged.config/env.ts—RAZORPAY_KEY_ID/_KEY_SECRET/_WEBHOOK_SECRETnow.optional()instead of required.apps/api/package.json— dropped the unusedrazorpaydependency..env.example— removed theRAZORPAY_*placeholders.Hid dangling billing/pricing nav (resolves intent of #3)
SettingsNav.tsx,SettingsLayout.astro— removed the Billing entry.CommandPalette.tsx— removed the "open billing" command.PublicHeader.astro— removed the/pricinglink.Boundary
Extended
verify-core-only.shstatic-import denylist to includeroutes/razorpay|routes/billing|lib/razorpay/.Untouched — community-license entitlement path stays intact
lib/entitlements.ts,lib/entitlement-gate.ts,routes/licenses.ts,lib/license-key.ts,plugins/subscription.ts,plugins/free-limits.ts,lib/workspace.ts,db/schema.ts(billing columns stay harmlessly). The community flow (POST /api/licenses/redeem→workspaces.plan='community'→resolveEntitlements→ history/export unlock) is unaffected.Verify results
pnpm --filter @boppl/api build(tsc strict) — exit 0pnpm --filter @boppl/web build(astro) — exit 0verify-core-only.sh— CLEAN (no core→gated static imports; core compiles ee-entrypoint-absent)license-key.test.ts— 4/4 passing🤖 Generated with Claude Code