diff --git a/apps/pay/src/routes.ts b/apps/pay/src/routes.ts index 5430bb2..5dac983 100644 --- a/apps/pay/src/routes.ts +++ b/apps/pay/src/routes.ts @@ -79,7 +79,7 @@ export const routes = new Elysia() // Lifetime discount: credit up to 50% of lifetime price from previous payments if (plan === "lifetime" && planDef.priceUsd) { const [{ total }] = await sql`SELECT COALESCE(SUM(amount_usd), 0)::numeric as total FROM payments WHERE account_id = ${accountId} AND status = 'paid'`; - const credit = Math.min(Number(total), planDef.priceUsd * 0.5); + const credit = Math.min(Number(total), planDef.priceUsd * 0.75); amountUsd = Math.max(amountUsd - credit, 1); } const rates = await getExchangeRates(); diff --git a/apps/web/src/views/checkout.ejs b/apps/web/src/views/checkout.ejs index 2b7639d..eacf1df 100644 --- a/apps/web/src/views/checkout.ejs +++ b/apps/web/src/views/checkout.ejs @@ -8,7 +8,7 @@ const payApi = it.payApi || ''; const totalSpent = it.totalSpent || 0; const lifetimeBase = 140; - const lifetimeDiscount = Math.min(totalSpent, lifetimeBase * 0.5); + const lifetimeDiscount = Math.min(totalSpent, lifetimeBase * 0.75); const lifetimePrice = lifetimeBase - lifetimeDiscount; %> diff --git a/apps/web/src/views/landing.ejs b/apps/web/src/views/landing.ejs index f603b1b..6536fe1 100644 --- a/apps/web/src/views/landing.ejs +++ b/apps/web/src/views/landing.ejs @@ -552,7 +552,7 @@ -
Start with Pro and upgrade to Lifetime whenever you're ready. What you've spent on Pro gets credited toward the lifetime price, up to 50% off.
+Start with Pro and upgrade to Lifetime whenever you're ready. What you've spent on Pro gets credited toward the lifetime price, up to 75% off.