diff --git a/core/apps/payment/views.py b/core/apps/payment/views.py index 2cbaf41..2a685d1 100644 --- a/core/apps/payment/views.py +++ b/core/apps/payment/views.py @@ -50,7 +50,7 @@ class AtmosCallbackApiView(APIView): ) try: - order = Order.objects.get(id=invoice) + order = Order.objects.get(order_number=invoice) except Order.DoesNotExist: return Response( {"status": 0, "message": f"Инвойс с номером {invoice} отсутствует в системе"},