refactor(topup): Add logging for topup payment verification process and print response
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 3m57s

This commit is contained in:
2025-07-04 22:23:02 +05:00
parent f3e86d5873
commit cd17ced67d

View File

@ -387,7 +387,11 @@ class VerifyTopupPaymentAPIView(StaffEditorPermissionMixin, generics.UpdateAPIVi
topup_instance.created_at + timedelta(minutes=5) topup_instance.created_at + timedelta(minutes=5)
).strftime("%Y-%m-%d %H:%M"), ).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) topup_verification_response = self.verify_transfer_topup(data, topup_instance)
print("Topup verification response:", topup_verification_response)
if topup_verification_response.success: if topup_verification_response.success:
user.wallet_balance += topup_instance.amount # type: ignore user.wallet_balance += topup_instance.amount # type: ignore
user.save() user.save()