From 68fd5c3807700aeef084f937331dd2004459372e Mon Sep 17 00:00:00 2001 From: Jared Pereira Date: Tue, 10 Mar 2026 14:43:51 -0400 Subject: [PATCH] allow promotional codes --- actions/createCheckoutSession.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/actions/createCheckoutSession.ts b/actions/createCheckoutSession.ts index 8a355e7a..10677983 100644 --- a/actions/createCheckoutSession.ts +++ b/actions/createCheckoutSession.ts @@ -51,6 +51,7 @@ export async function createCheckoutSession( ? { customer: customerId } : { customer_email: identity.email || undefined }), subscription_data: { metadata: { identity_id: identity.id } }, + allow_promotion_codes: true, success_url: successUrl.toString(), cancel_url: cancelUrl, }); -- 2.51.2