Update VerifyPaymentView to mark payment as paid and set payment method upon successful transfer
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 2m47s

This commit is contained in:
i701 2025-05-30 22:36:59 +05:00
parent 5b4d0e6488
commit 09591bf825
Signed by: i701
GPG Key ID: 54A0DA1E26D8E587

View File

@ -223,6 +223,10 @@ class VerifyPaymentView(StaffEditorPermissionMixin, generics.UpdateAPIView):
if not response.json().get("success"):
return mib_resp["success"]
else:
payment.paid = True
payment.paid_at = timezone.now()
payment.method = "TRANSFER"
payment.save()
return True