def confirm(request): form = forms.ConfirmPinForm() if request.method == 'POST': form = forms.ConfirmPinForm(uuid=get_user(request), data=request.POST) if form.is_valid(): set_user_has_confirmed_pin(request, True) return http.HttpResponseRedirect(get_payment_url()) form.no_pin = True return render(request, 'pin/pin_form.html', {'form': form, 'title': _('Confirm Pin'), 'action': reverse('pin.confirm')})
def confirm(request): form = forms.ConfirmPinForm() if request.method == 'POST': form = forms.ConfirmPinForm(uuid=get_user(request), data=request.POST) if form.is_valid(): set_user_has_confirmed_pin(request, True) return http.HttpResponseRedirect(get_payment_url(request)) form.no_pin = True return render(request, 'pin/pin_form.html', {'form': form, 'title': _('Confirm Pin'), 'action': reverse('pin.confirm')})
def confirm(request): form = forms.ConfirmPinForm() if request.method == 'POST': form = forms.ConfirmPinForm(uuid=get_user(request), data=request.POST) if form.is_valid(): set_user_has_confirmed_pin(request, True) return http.HttpResponseRedirect(get_payment_url(request)) form.no_pin = True return render(request, 'pin/pin_form.html', {'form': form, 'title': _('Confirm Pin'), 'action': reverse('pin.confirm'), 'pin_form_tracking' : { 'pin_error_codes': form.pin_error_codes, }, 'track_cancel': { 'action': 'pin cancel', 'label': 'Confirm Pin Page', }})
def confirm(request): form = forms.ConfirmPinForm() if request.method == 'POST': form = forms.ConfirmPinForm(uuid=get_user(request), data=request.POST) if form.is_valid(): set_user_has_confirmed_pin(request, True) return http.HttpResponseRedirect(get_wait_url(request)) form.no_pin = True return render( request, 'pin/pin_form.html', { 'form': form, 'title': _('Confirm Pin'), 'action': reverse('pin.confirm'), 'pin_form_tracking': { 'pin_error_codes': form.pin_error_codes, }, 'track_cancel': { 'action': 'pin cancel', 'label': 'Confirm Pin Page', } })