go: support coupon
This commit is contained in:
parent
41612b3dbe
commit
01c5eb679c
10 changed files with 53 additions and 27 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue