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

This commit is contained in:
2025-07-25 15:32:28 +05:00
parent 3200d8e41c
commit 8d9a2ed2e0

View File

@@ -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(