def METHOD_NAME(req):
    if req.user is None:
        return redirect("/")
    if User.HasActivePayment(req.user):
        return redirect("payments_confirmed")
    return render(req, "payments/return.html")