Enhance PanelWebhookService to support panel expiry updates and auto-renew payments

- Updated the PanelWebhookService to accept a new PanelApiService dependency for managing panel user details.
- Implemented functionality to update panel expiry upon subscription renewal, ensuring users maintain access to services.
- Added error handling and logging for both panel expiry updates and auto-renew payment record creation, improving reliability and user feedback.
This commit is contained in:
machka-pasla
2025-09-01 21:23:55 +03:00
parent 56fc88c10e
commit b69c2ab18d
3 changed files with 66 additions and 2 deletions
+1 -1
View File
@@ -45,7 +45,7 @@ def build_core_services(
subscription_service,
referral_service,
)
panel_webhook_service = PanelWebhookService(bot, settings, i18n, async_session_factory)
panel_webhook_service = PanelWebhookService(bot, settings, i18n, async_session_factory, panel_service)
yookassa_service = YooKassaService(
shop_id=settings.YOOKASSA_SHOP_ID,
secret_key=settings.YOOKASSA_SECRET_KEY,