💸 chore: Align subscription pricing display with global currency settings

Unify subscription price rendering to use the site-wide currency symbol/rate on the wallet and admin views.
Make subscription plan currency read-only in the editor and force USD on create/update to avoid drift.
Use global currency display type when creating Creem checkout payloads.
This commit is contained in:
t0ng7u
2026-01-31 13:41:55 +08:00
parent 354da6ea6b
commit 28c5feb570
7 changed files with 39 additions and 30 deletions

View File

@@ -149,6 +149,7 @@ func AdminCreateSubscriptionPlan(c *gin.Context) {
if req.Plan.Currency == "" {
req.Plan.Currency = "USD"
}
req.Plan.Currency = "USD"
if req.Plan.DurationUnit == "" {
req.Plan.DurationUnit = model.SubscriptionDurationMonth
}
@@ -215,6 +216,7 @@ func AdminUpdateSubscriptionPlan(c *gin.Context) {
if req.Plan.Currency == "" {
req.Plan.Currency = "USD"
}
req.Plan.Currency = "USD"
if req.Plan.DurationUnit == "" {
req.Plan.DurationUnit = model.SubscriptionDurationMonth
}