go: support coupon

This commit is contained in:
Frank
2026-04-07 10:09:00 -04:00
parent 41612b3dbe
commit 01c5eb679c
10 changed files with 53 additions and 27 deletions
+1 -1
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,