webhook separate file 4

This commit is contained in:
rizwanisready
2024-05-04 23:45:01 +05:30
parent 829cd5765b
commit 7cb9288fdc

View File

@@ -102,9 +102,9 @@ class ReferralRewardService:
value=amount,
)
self._credit_transaction(referral_record.referrer_principal, amount)
self.notification_service.referral_received_notification(
referral_record.referrer_principal, amount, self.principal.email
)
# self.notification_service.referral_received_notification(
# referral_record.referrer_principal, amount, self.principal.email
# )
def _credit_transaction(self, referrer_principal, amount):
Transaction.objects.create(
@@ -219,15 +219,15 @@ class PaymentProcessingService:
)
referral_service.credit_referral_reward_if_applicable()
self.notification_service.payment_success_notification(
self.principal, self.subscription, self.transaction.amount
)
# self.notification_service.payment_success_notification(
# self.principal, self.subscription, self.transaction.amount
# )
def handle_failure(self):
self.subscription_service.update_transaction_failure(self.transaction)
self.notification_service.payment_failed_notification(
self.principal, self.subscription, self.transaction.amount
)
# self.notification_service.payment_failed_notification(
# self.principal, self.subscription, self.transaction.amount
# )
class NotificationService: