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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user