From cd17ced67d5eba4181190e84393e70c51c3b8730 Mon Sep 17 00:00:00 2001 From: i701 Date: Fri, 4 Jul 2025 22:23:02 +0500 Subject: [PATCH] refactor(topup): Add logging for topup payment verification process and print response --- billing/views.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/billing/views.py b/billing/views.py index 0fb702c..be9f7a7 100644 --- a/billing/views.py +++ b/billing/views.py @@ -387,7 +387,11 @@ class VerifyTopupPaymentAPIView(StaffEditorPermissionMixin, generics.UpdateAPIVi topup_instance.created_at + timedelta(minutes=5) ).strftime("%Y-%m-%d %H:%M"), } + logger.info( + f"Verifying topup payment created at {topup_instance.created_at} with data: {data}" + ) topup_verification_response = self.verify_transfer_topup(data, topup_instance) + print("Topup verification response:", topup_verification_response) if topup_verification_response.success: user.wallet_balance += topup_instance.amount # type: ignore user.save()