go: support coupon

This commit is contained in:
Frank 2026-04-07 10:08:57 -04:00
commit 01c5eb679c
10 changed files with 53 additions and 27 deletions

View file

@ -254,7 +254,7 @@ export namespace Billing {
const createSession = () =>
Billing.stripe().checkout.sessions.create({
mode: "subscription",
discounts: [{ coupon: LiteData.firstMonth50Coupon() }],
discounts: [{ coupon: LiteData.firstMonthCoupon(email!) }],
...(billing.customerID
? {
customer: billing.customerID,