Files
zooqueen 5476669298 billing: hand payment to the hosted pages
The dataroom carried its own plan catalog, feature grid and Stripe
price-id mapper with no payment SDK behind them, so nothing there could
take money. Plans and pricing now open pay.hanzo.ai, invoices and
payment method open billing.hanzo.ai, both named once in
lib/billing/hosted.ts.

UpgradePlanModal keeps its name, props and children API across all 45
call sites; clickedPlan rides the analytics event and highlightItem no
longer has an effect, since the hosted page owns the catalog.
2026-08-14 20:50:04 -07:00

17 lines
507 B
TypeScript

/**
* Hanzo hosts payment; the dataroom never takes money itself.
*
* - plans and pricing -> PAY_URL
* - invoices, payment method -> BILLING_URL
*/
export const PAY_URL = process.env.NEXT_PUBLIC_PAY_URL ?? "https://pay.hanzo.ai";
export const BILLING_URL =
process.env.NEXT_PUBLIC_BILLING_URL ?? "https://billing.hanzo.ai";
/** Opens a hosted page in a new tab, with no handle back to this one. */
export function visit(url: string) {
window.open(url, "_blank", "noopener,noreferrer");
}