title: How to enable reCAPTCHA v3 in Opencart 2x?
body: <p>I want to use reCAPTCHA v3 in Opencart 2x.</p>
  
  <p>As Opencart 2 supports reCAPTCHA by default i need to modify some files but I'm not such a coding guy. </p>
  
  <p>I found this code in /controller/captcha/google_captcha.php</p>
  
  <pre><code>class ControllerCaptchaGoogleCaptcha extends Controller {
      public function index($error = array()) {
          $this-&gt;load-&gt;language('captcha/google_captcha');
  
          $data['heading_title'] = $this-&gt;language-&gt;get('heading_title');
  
          $data['entry_captcha'] = $this-&gt;language-&gt;get('entry_captcha');
  
          $this-&gt;document-&gt;addScript('https://www.google.com/recaptcha/api.js');
  
          if (isset($error['captcha'])) {
              $data['error_captcha'] = $error['captcha'];
          } else {
              $data['error_captcha'] = '';
          }
  
          $data['site_key'] = $this-&gt;config-&gt;get('google_captcha_key');
  
          $data['route'] = $this-&gt;request-&gt;get['route']; 
  
          if (file_exists(DIR_TEMPLATE . $this-&gt;config-&gt;get('config_template') . '/template/captcha/google_captcha.tpl')) {
              return $this-&gt;load-&gt;view($this-&gt;config-&gt;get('config_template') . '/template/captcha/google_captcha.tpl', $data);
          } else {
              return $this-&gt;load-&gt;view('default/template/captcha/google_captcha.tpl', $data);
          }
      }
  
      public function validate() {
          $this-&gt;load-&gt;language('captcha/google_captcha');
  
          $recaptcha = file_get_contents('https://www.google.com/recaptcha/api/siteverify?secret=' . urlencode($this-&gt;config-&gt;get('google_captcha_secret')) . '&amp;response=' . $this-&gt;request-&gt;post['g-recaptcha-response'] . '&amp;remoteip=' . $this-&gt;request-&gt;server['REMOTE_ADDR']);
  
          $recaptcha = json_decode($recaptcha, true);
  
          if (!$recaptcha['success']) {
              return $this-&gt;language-&gt;get('error_captcha');
          }
      }
  }
  </code></pre>
  
  <p>Any ideas how to modify this file?</p>