From 03e4efb0668e3fbd3c93a5a6d68892198ee9a955 Mon Sep 17 00:00:00 2001 From: behruz-dev Date: Thu, 11 Sep 2025 16:30:15 +0500 Subject: [PATCH] change --- core/apps/payment/views.py | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/core/apps/payment/views.py b/core/apps/payment/views.py index 7f106d6..0197a2d 100644 --- a/core/apps/payment/views.py +++ b/core/apps/payment/views.py @@ -50,19 +50,19 @@ class AtmosCallbackApiView(APIView): status=status.HTTP_200_OK ) - try: - order = Order.objects.get(order_number=invoice) - except Order.DoesNotExist: - return Response( - {"status": 0, "message": f"Инвойс с номером {invoice} отсутствует в системе"}, - status=status.HTTP_200_OK - ) + # try: + # order = Order.objects.get(order_number=invoice) + # except Order.DoesNotExist: + # return Response( + # {"status": 0, "message": f"Инвойс с номером {invoice} отсутствует в системе"}, + # status=status.HTTP_200_OK + # ) - if str(order.total_price) != str(amount): - return Response( - {"status": 0, "message": f"Инвойс с номером {invoice} отсутствует в системе"}, - status=status.HTTP_200_OK - ) + # if str(order.total_price) != str(amount): + # return Response( + # {"status": 0, "message": f"Инвойс с номером {invoice} отсутствует в системе"}, + # status=status.HTTP_200_OK + # ) order.is_paid = True order.save()