From 26ab51f9d49b44d8412afcf3cf98f8c50c2f1145 Mon Sep 17 00:00:00 2001 From: Vasily Zubarev Date: Mon, 28 Apr 2025 09:56:28 +0200 Subject: [PATCH] feat: allow promo codes --- app/api/stripe/checkout/route.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/app/api/stripe/checkout/route.ts b/app/api/stripe/checkout/route.ts index ef260b2..ebf94bd 100644 --- a/app/api/stripe/checkout/route.ts +++ b/app/api/stripe/checkout/route.ts @@ -32,6 +32,7 @@ export async function POST(request: NextRequest) { automatic_tax: { enabled: true, }, + allow_promotion_codes: true, success_url: config.stripe.paymentSuccessUrl, cancel_url: config.stripe.paymentCancelUrl, })