Jun 28 - Implement payment functions (Stripe)

This commit is contained in:
2026-06-28 12:01:25 -04:00
parent 61ede27093
commit f292c8fb7b
21 changed files with 1112 additions and 18 deletions
+7
View File
@@ -119,6 +119,13 @@ def tenant_detail(tenant_id):
'db_host': t.db_host, 'db_port': t.db_port,
'alembic_head': t.alembic_head, 'created_at': t.created_at,
'suspended_at': t.suspended_at, 'notes': t.notes,
# MT-8: billing fields (read-only in panel)
'subscription_status': t.subscription_status,
'trial_ends_at': t.trial_ends_at,
'current_period_end': t.current_period_end,
'stripe_customer_id': t.stripe_customer_id,
'stripe_subscription_id': t.stripe_subscription_id,
'billing_email': t.billing_email,
}
plan_rows = [{'id': p.id, 'code': p.code, 'name': p.name} for p in plans]
domain_rows = [