mirror of
https://github.com/i701/sarlink-portal-api.git
synced 2025-10-06 20:11:35 +00:00
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
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 4m8s
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