diff --git a/manage_subscriptions/api/views.py b/manage_subscriptions/api/views.py index 78b1562..a7fa41d 100644 --- a/manage_subscriptions/api/views.py +++ b/manage_subscriptions/api/views.py @@ -195,6 +195,8 @@ class StripeWebhookTest(APIView): payment_service.process_event() webhook_event = WebhookEvent.objects.get(event_id=event_id) webhook_event.status = "processed" + webhook_event.processed_at = timezone.now() # Make sure to import timezone + webhook_event.save() return ApiResponse.success( status=status.HTTP_200_OK, message="Event processed successfully" )