mirror of
https://github.com/i701/sarlink-portal-api.git
synced 2025-10-05 13:35:23 +00:00
fix(payment): update payment verification response status to 200 OK and set payment status to PAID ✨
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 4m27s
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 4m27s
This commit is contained in:
@@ -206,7 +206,7 @@ class VerifyPaymentView(StaffEditorPermissionMixin, generics.UpdateAPIView):
|
||||
"status": True,
|
||||
"message": "Payment verified successfully using wallet.",
|
||||
},
|
||||
status=status.HTTP_400_BAD_REQUEST,
|
||||
status=status.HTTP_200_OK,
|
||||
)
|
||||
if method == "TRANSFER":
|
||||
data = {
|
||||
@@ -269,6 +269,7 @@ class VerifyPaymentView(StaffEditorPermissionMixin, generics.UpdateAPIView):
|
||||
payment.paid = True
|
||||
payment.paid_at = timezone.now()
|
||||
payment.method = "WALLET"
|
||||
payment.status = "PAID"
|
||||
payment.save()
|
||||
|
||||
user.deduct_wallet_funds(
|
||||
|
Reference in New Issue
Block a user