fix(payments): point manage subscription to org customer portal
Some checks failed
CI / Backend (pull_request) Successful in 32s
CI / UI (pull_request) Failing after 28s
CI / Backend (push) Successful in 26s
CI / UI (push) Failing after 25s
Release / Check ui (push) Failing after 16s
Release / Docker / ui (push) Has been skipped
Release / Test backend (push) Successful in 47s
Release / Docker / caddy (push) Successful in 50s
Release / Docker / runner (push) Successful in 2m0s
Release / Docker / backend (push) Successful in 2m59s
Release / Gitea Release (push) Has been skipped

This commit is contained in:
Admin
2026-03-31 23:26:57 +05:00
parent 392248e8a6
commit e7cb460f9b

View File

@@ -13,11 +13,8 @@
const emailParam = data.email ? `?customer_email=${encodeURIComponent(data.email)}` : '';
const checkoutMonthly = `https://buy.polar.sh/polar_cl_KtOHiuL2UkiQ4hrojBfINnxlCTORX1A8DeUUO18irVA${emailParam}`;
const checkoutAnnual = `https://buy.polar.sh/polar_cl_ylmUnsorSBCgNMhWVG7iO8zVQBnr5cVeLJlW74fm5kG${emailParam}`;
// Customer portal: if user already has a Polar customer ID, link to their portal;
// otherwise fall back to the org page
const manageUrl = data.polarCustomerId
? `https://polar.sh/purchases`
: `https://polar.sh/libnovel`;
// Customer portal: always link to the org portal — customer logs in with checkout email
const manageUrl = `https://polar.sh/libnovel/portal`;
// ── Avatar ───────────────────────────────────────────────────────────────────
let avatarUrl = $state<string | null>(untrack(() => data.avatarUrl ?? null));