mirror of
https://github.com/i701/sarlink-portal-api.git
synced 2025-06-06 23:46:19 +00:00
Update VerifyPaymentView to mark payment as paid and set payment method upon successful transfer
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 2m47s
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 2m47s
This commit is contained in:
parent
5b4d0e6488
commit
09591bf825
@ -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
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user