mirror of
https://github.com/i701/sarlink-portal-api.git
synced 2025-07-07 18:26:30 +00:00
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
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 3m57s
This commit is contained in:
@ -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()
|
||||||
|
Reference in New Issue
Block a user