From 2d16fdec6f1fdf1f28b29869076bb9dcfaf30741 Mon Sep 17 00:00:00 2001 From: sharath <29162020+tnfssc@users.noreply.github.com> Date: Fri, 23 May 2025 12:24:02 +0000 Subject: [PATCH] feat(billing): allow promocodes when purchasing --- backend/services/billing.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/services/billing.py b/backend/services/billing.py index 62a1404b..74076745 100644 --- a/backend/services/billing.py +++ b/backend/services/billing.py @@ -553,7 +553,8 @@ async def create_checkout_session( metadata={ 'user_id': current_user_id, 'product_id': product_id - } + }, + allow_promotion_codes=True ) # Update customer status to potentially active (will be confirmed by webhook)