Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.
refactor: add new price ids (internal fix)
Marc Seitzc9da708e73fa
diff --git a/components/billing/upgrade-plan-modal.tsx b/components/billing/upgrade-plan-modal.tsxindex 7761942a..757313d8 100644--- a/components/billing/upgrade-plan-modal.tsx+++ b/components/billing/upgrade-plan-modal.tsx@@ -129,12 +129,13 @@ export function UpgradePlanModal({</motion.div></div><Button- disabled={clicked}+ loading={clicked}onClick={() => {setClicked(true);fetch(- `/api/teams/${teamInfo?.currentTeam- ?.id}/billing/upgrade?priceId=${+ `/api/teams/${+ teamInfo?.currentTeam?.id+ }/billing/upgrade?priceId=${PLANS.find((p) => p.name === plan)!.price[period].priceIds[process.env.NEXT_PUBLIC_VERCEL_ENV === "production"? "production"diff --git a/lib/stripe/utils.ts b/lib/stripe/utils.tsindex 00e01318..fd639b1b 100644--- a/lib/stripe/utils.ts+++ b/lib/stripe/utils.ts@@ -46,36 +46,18 @@ export const PLANS = [amount: 29,priceIds: {test: "price_1NmHGzFJyGSZ96lhp946ODFI",- production: "price_1NmMZ7FJyGSZ96lhyad2LW90",+ production: "price_1Op0Q3FJyGSZ96lhtEUxLSGs", // new price+ // production: "price_1NmMZ7FJyGSZ96lhyad2LW90", // old price},},yearly: {amount: 24,priceIds: {test: "price_1NmHHaFJyGSZ96lhXxg2fTr7",- production: "price_1NmMZ7FJyGSZ96lhqZEkh50e",+ production: "price_1Op0fFFJyGSZ96lhPVrvzz5a", // new price+ // production: "price_1NmMZ7FJyGSZ96lhqZEkh50e", // old price},},},},- // {- // name: "Starter",- // slug: "starter",- // price: {- // monthly: {- // amount: 15,- // priceIds: {- // test: "price_1OIsDmFJyGSZ96lh2aIhaerk",- // production: "price_1OJTUWFJyGSZ96lhTcJPVBgS",- // },- // },- // yearly: {- // amount: 150,- // priceIds: {- // test: "price_1OIsDmFJyGSZ96lhVOYVN8PN",- // production: "price_1OJTUWFJyGSZ96lhGnKb3E9F",- // },- // },- // },- // },];