def METHOD_NAME(request):
    """View handler for the enrollment landing page."""
    session.update(request, origin=reverse(ROUTE_INDEX))
    agency = session.agency(request)
    # POST back after payment processor form, process card token
    if request.method == "POST":
        form = forms.CardTokenizeSuccessForm(request.POST)
        if not form.is_valid():
            raise Exception("Invalid card token form")
        eligibility = session.eligibility(request)
        logger.debug(f"Session contains an {models.EligibilityType.__name__}")
        logger.debug("Read tokenized card")
        card_token = form.cleaned_data.get("card_token")
        response = api.Client(agency).enroll(card_token, eligibility.group_id)
        if response.success:
            analytics.returned_success(request, eligibility.group_id)
            return success(request)
        else:
            analytics.returned_error(request, response.message)
            raise Exception(response.message)
    # GET enrollment index
    else:
        tokenize_retry_form = forms.CardTokenizeFailForm(ROUTE_RETRY)
        tokenize_success_form = forms.CardTokenizeSuccessForm(auto_id=True, label_suffix="")
        context = {
            "forms": [tokenize_retry_form, tokenize_success_form],
            "cta_button": "tokenize_card",
            "card_tokenize_env": agency.payment_processor.card_tokenize_env,
            "card_tokenize_func": agency.payment_processor.card_tokenize_func,
            "card_tokenize_url": agency.payment_processor.card_tokenize_url,
            "token_field": "card_token",
            "form_retry": tokenize_retry_form.id,
            "form_success": tokenize_success_form.id,
        }
        logger.debug(f'card_tokenize_url: {context["card_tokenize_url"]}')
        return TemplateResponse(request, TEMPLATE_INDEX, context)