From 502d6db6d0de384a2831d059b974811513937f08 Mon Sep 17 00:00:00 2001 From: Frank Date: Wed, 11 Mar 2026 10:46:16 -0400 Subject: go: first month discount --- infra/console.ts | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'infra') diff --git a/infra/console.ts b/infra/console.ts index 128e06986..c7889c587 100644 --- a/infra/console.ts +++ b/infra/console.ts @@ -103,6 +103,12 @@ export const stripeWebhook = new stripe.WebhookEndpoint("StripeWebhookEndpoint", const zenLiteProduct = new stripe.Product("ZenLite", { name: "OpenCode Go", }) +const zenLiteCouponFirstMonth50 = new stripe.Coupon("ZenLiteCouponFirstMonth50", { + name: "First month 50% off", + percentOff: 50, + appliesToProducts: [zenLiteProduct.id], + duration: "once", +}) const zenLitePrice = new stripe.Price("ZenLitePrice", { product: zenLiteProduct.id, currency: "usd", @@ -116,6 +122,7 @@ const ZEN_LITE_PRICE = new sst.Linkable("ZEN_LITE_PRICE", { properties: { product: zenLiteProduct.id, price: zenLitePrice.id, + firstMonth50Coupon: zenLiteCouponFirstMonth50.id, }, }) -- cgit v1.2.3