stripe promo code

This commit is contained in:
Timo Knuth
2026-04-27 11:42:09 +02:00
parent c6f20f7f0b
commit 11159eb02b
3 changed files with 5 additions and 7 deletions

View File

@@ -53,6 +53,7 @@ export async function POST(request: NextRequest) {
customer: customerId,
mode: 'subscription',
payment_method_types: ['card'],
allow_promotion_codes: true,
line_items: [
{
price: priceId,

View File

@@ -108,6 +108,7 @@ export async function POST(request: NextRequest) {
customer: customerId,
mode: 'subscription',
payment_method_types: ['card'],
allow_promotion_codes: true,
line_items: [
{
price: priceId,