feat: allow stripe promotion code

This commit is contained in:
Seefs committed 2025-09-27 15:43:12 +08:00
1 parent e6525eea7f
commit bd6f4dee73
7 files changed
+34 -2

No files matched your search

+2 -1
View File
@@ -225,7 +225,8 @@ func genStripeLink(referenceId string, customerId string, email string, amount i
Quantity: stripe.Int64(amount),
},
},
Mode: stripe.String(string(stripe.CheckoutSessionModePayment)),
Mode: stripe.String(string(stripe.CheckoutSessionModePayment)),
AllowPromotionCodes: stripe.Bool(setting.StripePromotionCodesEnabled),
}
if "" == customerId {