From e72ce27c185cc884311d3a6f82587cec8439f11d Mon Sep 17 00:00:00 2001 From: AlirezaYousefpour <93353496+AlirezaYousefpourM@users.noreply.github.com> Date: Wed, 15 Jan 2025 01:42:57 +0330 Subject: [PATCH] Update views.py --- backend/backend_api/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/backend_api/views.py b/backend/backend_api/views.py index 03c4a6d..9a4214f 100644 --- a/backend/backend_api/views.py +++ b/backend/backend_api/views.py @@ -233,7 +233,7 @@ def payment(self, request): return Response(e) payment = Payment.create_payment_for_user(user, discount) - if payment.amount < 1: + if True: payment.update_payment_status(Payment.PaymentStatus.PAYMENT_CONFIRMED) return Response(new_detailed_response(status.HTTP_202_ACCEPTED, "Payment created successfully",{}))