From 09591bf825453df067ead405e28ef39abc474d05 Mon Sep 17 00:00:00 2001 From: i701 Date: Fri, 30 May 2025 22:36:59 +0500 Subject: [PATCH] Update VerifyPaymentView to mark payment as paid and set payment method upon successful transfer --- billing/views.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/billing/views.py b/billing/views.py index 7403e60..1b4f04f 100644 --- a/billing/views.py +++ b/billing/views.py @@ -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