Add mib_reference assignment in VerifyPaymentView upon successful payment verification
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 4m8s

This commit is contained in:
i701 2025-05-31 13:02:10 +05:00
parent 15f885a4cb
commit a9e1973f4a
Signed by: i701
GPG Key ID: 54A0DA1E26D8E587

View File

@ -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