diff --git a/server/vbv_lernwelt/shop/views.py b/server/vbv_lernwelt/shop/views.py index 6fe4ad73..57fdf1f3 100644 --- a/server/vbv_lernwelt/shop/views.py +++ b/server/vbv_lernwelt/shop/views.py @@ -6,7 +6,7 @@ from rest_framework.permissions import IsAuthenticated from rest_framework.response import Response from vbv_lernwelt.core.admin import User -from vbv_lernwelt.course.models import CourseSessionUser, CourseSession +from vbv_lernwelt.course.models import CourseSession, CourseSessionUser from vbv_lernwelt.shop.models import ( BillingAddress, CheckoutInformation, @@ -124,7 +124,7 @@ def checkout_vv(request): if checkouts.filter( state__in=[CheckoutState.SETTLED, CheckoutState.TRANSMITTED] ).exists(): - return JsonResponse({"next_step_url": checkout_success_url()}) + return JsonResponse({"next_step_url": "/"}) # already initialized -> redirect to payment page again if checkout := checkouts.filter(state=CheckoutState.INITIALIZED).first():