diff --git a/api/services/billing_service.py b/api/services/billing_service.py index d57791b1bb..9d35de3ce0 100644 --- a/api/services/billing_service.py +++ b/api/services/billing_service.py @@ -122,12 +122,12 @@ class BillingService: raise EducationActivateLimitError() cls.activation_rate_limit.increment_rate_limit(account.email) + params = {"account_id": account.id} json = { - "account_id": account.id, "institution": institution, "token": token, } - return BillingService._send_request("POST", "/education/", json=json) + return BillingService._send_request("POST", "/education/", json=json, params=params) @classmethod def autocomplete(cls, keywords: str, page: int = 0, limit: int = 20): diff --git a/api/services/feature_service.py b/api/services/feature_service.py index cb8f475c20..331f9b2a72 100644 --- a/api/services/feature_service.py +++ b/api/services/feature_service.py @@ -120,7 +120,7 @@ class FeatureService: features.billing.enabled = billing_info["enabled"] features.billing.subscription.plan = billing_info["subscription"]["plan"] features.billing.subscription.interval = billing_info["subscription"]["interval"] - features.billing.subscription.education = billing_info["subscription"]["education"] + features.billing.subscription.education = billing_info["subscription"].get("education", False) if "members" in billing_info: features.members.size = billing_info["members"]["size"]