payment.py 741 B

1234567891011121314151617181920212223
  1. """Payment-related helpers for the zhuce6 ChatGPT platform."""
  2. from __future__ import annotations
  3. from typing import Any
  4. def check_subscription_status(account: Any, proxy: str | None = None) -> str | None:
  5. del proxy
  6. access_token = str(getattr(account, "access_token", "") or "").strip()
  7. if not access_token:
  8. return None
  9. return "unknown"
  10. def generate_plus_link(account: Any, proxy: str | None = None, country: str = "US") -> str:
  11. del account, proxy
  12. return f"https://chatgpt.com/#pricing?plan=plus&country={country}"
  13. def generate_team_link(account: Any, proxy: str | None = None, country: str = "US") -> str:
  14. del account, proxy
  15. return f"https://chatgpt.com/#pricing?plan=team&country={country}"