tenseleyflow/shithub / ab57979

Browse files

config: add billing.stripe.pro_price_id (operator-disabled by default)

Authored by mfwolffe <wolffemf@dukes.jmu.edu>
SHA
ab579797809de430191d20d91171bb477008b25e
Parents
394c6e9
Tree
ceedbe1

1 changed file

StatusFile+-
M internal/infra/config/config.go 3 0
internal/infra/config/config.gomodified
@@ -106,10 +106,13 @@ type BillingConfig struct {
106106
 
107107
 // StripeBillingConfig holds Stripe Billing API settings. Checkout and portal
108108
 // URLs are optional; when omitted the web layer derives them from auth.base_url.
109
+// PRO04 introduced ProPriceID for the user-tier Pro plan; it stays empty
110
+// when the operator has only enabled the org-tier Team plan.
109111
 type StripeBillingConfig struct {
110112
 	SecretKey       string `toml:"secret_key"`
111113
 	WebhookSecret   string `toml:"webhook_secret"`
112114
 	TeamPriceID     string `toml:"team_price_id"`
115
+	ProPriceID      string `toml:"pro_price_id"`
113116
 	SuccessURL      string `toml:"success_url"`
114117
 	CancelURL       string `toml:"cancel_url"`
115118
 	PortalReturnURL string `toml:"portal_return_url"`