Skip to content

Commit

Permalink
Update views.py
Browse files Browse the repository at this point in the history
  • Loading branch information
AlirezaYousefpourM authored Jan 14, 2025
1 parent 2b8c418 commit e72ce27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/backend_api/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",{}))

Expand Down

0 comments on commit e72ce27

Please sign in to comment.