def METHOD_NAME(req):
    err = False
    if req.user is None:
        return redirect("/")
    if "email" in req.POST:
        if payments_claim_initiate(req, req.user, req.POST["email"]):
            return redirect("/")
        else:
            err = True
    return render(req, "payments/claim.html", {"err": err})