Enhance auto-renewal messaging and payment processing logic

- Introduced a new flag for auto-renew subscriptions to streamline messaging and avoid redundant configuration links.
- Updated localization files to include a new message for auto-renewal notifications in both English and Russian.
- Improved error handling and logging in the payment processing flow to ensure clarity and reliability during subscription renewals.
This commit is contained in:
machka-pasla
2025-09-03 10:44:20 +03:00
parent c607b6ef85
commit 9b4dab84ad
4 changed files with 54 additions and 40 deletions
+2
View File
@@ -196,8 +196,10 @@ class PanelWebhookService:
if sub and sub.auto_renew_enabled and sub.provider != 'tribute':
try:
ok = await subscription_service.charge_subscription_renewal(session, sub)
# If initiation succeeded, suppress the 24h reminder by returning early
if ok:
await session.commit()
return
else:
await session.rollback()
except Exception: