From 09d880ce7a1f283d22a04040a3e1721abb8c9081 Mon Sep 17 00:00:00 2001 From: Marcio Bevervanso Date: Mon, 13 Apr 2026 20:09:59 -0300 Subject: [PATCH] feat: enable stripe promotion codes in checkout --- supabase/functions/stripe-checkout/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/supabase/functions/stripe-checkout/index.ts b/supabase/functions/stripe-checkout/index.ts index f44306d..8cbcb9f 100644 --- a/supabase/functions/stripe-checkout/index.ts +++ b/supabase/functions/stripe-checkout/index.ts @@ -107,6 +107,7 @@ Deno.serve(async (req) => { const session = await stripe.checkout.sessions.create({ mode: "subscription", + allow_promotion_codes: true, // Libera o campo de cupom de desconto na tela do Stripe line_items: [{ price: priceId, quantity: 1 }], success_url: successUrl, cancel_url: cancelUrl,