feat: allow stripe promotion code

This commit is contained in:
Seefs
2025-09-27 15:43:12 +08:00
parent 5197d874d7
commit ad72500941
7 changed files with 34 additions and 2 deletions

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 {