<?php if ( $type !== false && $type == 'v3' ):?>
    <div class="js-ump-recaptcha-v3-item"></div>
    <span class="ihc-js-recaptcha-v3-key" data-value="<?php echo esc_attr($key);?>" data-secure_stripe="<?php echo get_option( 'ihc_security_stripe_recaptcha', 0 ) ? 1 : 0;?>"></span>
    <?php wp_enqueue_script( 'ihc-login-captcha-google', 'https://www.google.com/recaptcha/api.js?render=' . $key, ['jquery'], IHC_ASSET_VERSION );?>
    <?php wp_enqueue_script( 'ihc-login-captcha', IHC_URL . 'assets/js/captcha.js', ['jquery'], IHC_ASSET_VERSION );?>
<?php else :?>
    <div class="g-recaptcha-wrapper <?php if(!empty($class)){
      echo esc_attr($class);
    }?>">
        <div class="g-recaptcha" data-sitekey="<?php echo esc_attr($key);?>"  ></div>
        <?php wp_enqueue_script( 'ihc-login-captcha-google', 'https://www.google.com/recaptcha/api.js?hl=' . $langCode, ['jquery'], IHC_ASSET_VERSION );?>
    </div>
<?php endif;?>
