Update VerifyPaymentView to mark payment as paid and set payment method upon successful transfer
This commit is contained in:
@@ -223,6 +223,10 @@ class VerifyPaymentView(StaffEditorPermissionMixin, generics.UpdateAPIView):
|
|||||||
if not response.json().get("success"):
|
if not response.json().get("success"):
|
||||||
return mib_resp["success"]
|
return mib_resp["success"]
|
||||||
else:
|
else:
|
||||||
|
payment.paid = True
|
||||||
|
payment.paid_at = timezone.now()
|
||||||
|
payment.method = "TRANSFER"
|
||||||
|
payment.save()
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user