feat(notifications): implement comprehensive telegram notifications for payment providers

- Add NotifyMe trait with centralized Telegram bot integration
  - Implement webhook notifications for Polar, OxaPay, and ActivationKey providers
  - Add subscription lifecycle notifications (create, activate, cancel, pause, resume)
  - Enhance Polar webhook processing with user context and error handling
  - Fix subscription.updated and subscription.canceled webhook column errors
  - Add idempotent webhook processing to prevent duplicate handling
This commit is contained in:
idevakk
2025-12-08 09:25:19 -08:00
parent 8d8cd44ea5
commit 0d33c57b32
5 changed files with 654 additions and 47 deletions

View File

@@ -65,6 +65,8 @@ class Subscription extends Model
'amount',
'currency',
'expires_at',
'uncanceled_at',
'cancel_at_period_end',
];
protected $casts = [