Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

feat: Allow promo codes at checkout

Richie McIlroy5099bdbaaa5c
diff --git a/apps/web/app/api/settings/billing/subscribe/route.ts b/apps/web/app/api/settings/billing/subscribe/route.ts
index 58f3b5e8b..e784eb96c 100644
--- a/apps/web/app/api/settings/billing/subscribe/route.ts
+++ b/apps/web/app/api/settings/billing/subscribe/route.ts
@@ -61,6 +61,7 @@ export async function POST(request: NextRequest) {
mode: "subscription",
success_url: `${process.env.NEXT_PUBLIC_URL}/dashboard/caps?upgrade=true`,
cancel_url: `${process.env.NEXT_PUBLIC_URL}/pricing`,
+ allow_promotion_codes: true,
});
if (checkoutSession.url) {