{% if google_captcha %}
  <div id="g-recaptcha" class="g-recaptcha" data-sitekey="{{ site_key }}">
  </div>
  {% if error_google_captcha %}
    <span class="text-error text-small">{{ error_google_captcha }}</span>
  {% endif %}
  <script>
    $LAB.setOptions({AllowDuplicates:true}).script('https://www.google.com/recaptcha/api.js').wait(function() {
        grecaptcha.render('g-recaptcha', {
        'sitekey' : '{{ site_key }}'
      });
    });
  </script>
{% else %}
  <label class="ftr-field {{ (error_captcha) ? 'error' : '' }}">
    <input type="text" id="captcha" name="captcha" class="ftr-field__entry ftr-js-field__entry" value="{{ captcha }}" required>
    <span class="ftr-field__text">{{ text_captcha }} ou {{ text_captcha_placeholder }}</span>
    {% if error_captcha %}
      <span class="ftr-field__error">{{ error_captcha }}</span>
    {% endif %}
  </label>
  <img src="index.php?route=payment/captcha/loadCaptcha" alt="captcha" class="ftr-out-space--t-m">  
{% endif %}