From a9e1973f4aac7272060ca3b7f8f165fbeb3b9475 Mon Sep 17 00:00:00 2001 From: i701 Date: Sat, 31 May 2025 13:02:10 +0500 Subject: [PATCH] Add mib_reference assignment in VerifyPaymentView upon successful payment verification --- billing/views.py | 1 + 1 file changed, 1 insertion(+) diff --git a/billing/views.py b/billing/views.py index 7885dc5..09b08b5 100644 --- a/billing/views.py +++ b/billing/views.py @@ -228,6 +228,7 @@ class VerifyPaymentView(StaffEditorPermissionMixin, generics.UpdateAPIView): payment.paid = True payment.paid_at = timezone.now() payment.method = "TRANSFER" + payment.mib_reference = mib_resp["transaction"]["ref"] or "" payment.save() return True