Add mib_reference assignment in VerifyPaymentView upon successful payment verification
This commit is contained in:
@@ -228,6 +228,7 @@ class VerifyPaymentView(StaffEditorPermissionMixin, generics.UpdateAPIView):
|
|||||||
payment.paid = True
|
payment.paid = True
|
||||||
payment.paid_at = timezone.now()
|
payment.paid_at = timezone.now()
|
||||||
payment.method = "TRANSFER"
|
payment.method = "TRANSFER"
|
||||||
|
payment.mib_reference = mib_resp["transaction"]["ref"] or ""
|
||||||
payment.save()
|
payment.save()
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user