Closed jfsanchez2k closed 1 month ago
When implementing V3, an error "grecaptcha is not defined"
This code works with V2, but get the error with V3
@if (ReCaptchaSettings.Value.Enabled) { ReCaptchaSettings.Value.Version = Model.Merchant.RecaptchaVersion ?? ReCaptchaSettings.Value.Version; <div class="form-group m-0 p-0 d-flex"> @if (ReCaptchaSettings.Value.Version == ReCaptchaVersion.V2) { @Html.ReCaptcha(language: culture.Name) } else if (ReCaptchaSettings.Value.Version == ReCaptchaVersion.V3) { @* <recaptcha language="@culture.Name" /> *@ @Html.ReCaptcha(language: culture.Name) } </div> }
When implementing V3, an error "grecaptcha is not defined"
This code works with V2, but get the error with V3