Skip to content

Commit

Permalink
Fixed linting
Browse files Browse the repository at this point in the history
  • Loading branch information
LeMiTam committed Jan 20, 2025
1 parent 06c425b commit d1507c6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions app/payment/serializers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@
VippsOrderSerialzer,
OrderListSerializer,
OrderUpdateSerializer,
CheckPaymentSerializer,
)
2 changes: 2 additions & 0 deletions app/payment/views/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from app.payment.views.vipps_util import check_vipps_payment
from app.payment.serializers import CheckPaymentSerializer
4 changes: 2 additions & 2 deletions app/payment/views/vipps_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
from rest_framework.decorators import api_view
from rest_framework.response import Response

from app.payment.serializers import CheckPaymentStatusSerializer
from app.payment.serializers import CheckPaymentSerializer
from app.payment.util.payment_utils import get_payment_order_status


@api_view(["POST"])
def check_vipps_payment(self, request, *args, **kwargs):
has_changed = False

serializer = CheckPaymentStatusSerializer(data=request.data)
serializer = CheckPaymentSerializer(data=request.data)
serializer.is_valid(raise_exception=True)

event_id = serializer.validated_data["event_id"]
Expand Down

0 comments on commit d1507c6

Please sign in to comment.