summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorFuwn <[email protected]>2026-02-08 07:38:02 -0800
committerFuwn <[email protected]>2026-02-08 07:38:02 -0800
commite9e01cd166c06025aaacdc151fe985dc5b1dd652 (patch)
tree17cba0b700c51a046c8765b0f37643d96b8aa581 /apps
parentfeat: add Vercel BotID protection and fix billing origin fallback (diff)
downloadasa.news-e9e01cd166c06025aaacdc151fe985dc5b1dd652.tar.xz
asa.news-e9e01cd166c06025aaacdc151fe985dc5b1dd652.zip
feat: enable promotion codes on Stripe checkout
Diffstat (limited to 'apps')
-rw-r--r--apps/web/app/api/billing/create-checkout-session/route.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/web/app/api/billing/create-checkout-session/route.ts b/apps/web/app/api/billing/create-checkout-session/route.ts
index 1cba7a1..4e3e6f6 100644
--- a/apps/web/app/api/billing/create-checkout-session/route.ts
+++ b/apps/web/app/api/billing/create-checkout-session/route.ts
@@ -151,6 +151,7 @@ export async function POST(request: Request) {
metadata: { supabase_user_identifier: user.id },
},
client_reference_id: user.id,
+ allow_promotion_codes: true,
})
return NextResponse.json({ url: checkoutSession.url })