From 4fd892e1bd7372288bd444613835f0eb9d252a1f Mon Sep 17 00:00:00 2001 From: Emily Date: Thu, 13 Jun 2024 16:19:25 +0200 Subject: [PATCH] add discount codes --- dashboard/server/services/StripeService.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/dashboard/server/services/StripeService.ts b/dashboard/server/services/StripeService.ts index 32d6382..25d6c0b 100644 --- a/dashboard/server/services/StripeService.ts +++ b/dashboard/server/services/StripeService.ts @@ -27,6 +27,7 @@ class StripeService { if (!this.stripe) throw Error('Stripe not initialized'); const checkout = await this.stripe.checkout.sessions.create({ + allow_promotion_codes: true, payment_method_types: ['card'], line_items: [ { price, quantity: 1 }