Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
chore: update billing portal (#19819)
ecmadao0d300a9e21ac
diff --git a/backend/plugin/stripe/stripe.go b/backend/plugin/stripe/stripe.goindex 3fc7168c61..a8ddf6ed2d 100644--- a/backend/plugin/stripe/stripe.go+++ b/backend/plugin/stripe/stripe.go@@ -4,6 +4,7 @@ package stripeimport ("fmt""log/slog"+ "os""strconv""github.com/pkg/errors"@@ -376,11 +377,17 @@ func refundCustomerBalance(customerID string, totalRefundAmount int64, workspace}// CreateBillingPortalSession creates a Stripe Billing Portal session for invoice management.+// If STRIPE_BILLING_PORTAL_ID is set, uses that configuration to restrict+// portal features (e.g. disable subscription switching so changes go through our UI).func CreateBillingPortalSession(customerID string, returnURL string) (string, error) {- s, err := billingportalsession.New(&stripego.BillingPortalSessionParams{+ params := &stripego.BillingPortalSessionParams{Customer: stripego.String(customerID),ReturnURL: stripego.String(returnURL),- })+ }+ if configID := os.Getenv("STRIPE_BILLING_PORTAL_ID"); configID != "" {+ params.Configuration = stripego.String(configID)+ }+ s, err := billingportalsession.New(params)if err != nil {return "", errors.Wrap(err, "failed to create billing portal session")}diff --git a/frontend/src/react/components/AuditLogTable.tsx b/frontend/src/react/components/AuditLogTable.tsxindex a96ce91df9..6c1d15dc4a 100644--- a/frontend/src/react/components/AuditLogTable.tsx+++ b/frontend/src/react/components/AuditLogTable.tsx@@ -202,7 +202,7 @@ function JSONStringView({ jsonString }: { jsonString: string }) {onClick={() => setShowModal(false)}><div- className="bg-white rounded-md shadow-lg flex flex-col"+ className="bg-white rounded-sm shadow-lg flex flex-col"style={{width: "calc(100vw - 12rem)",height: "calc(100vh - 12rem)",