Google reCAPTCHA
JoomCourses can protect the checkout form with a captcha. It does not bring its own captcha: it uses the captcha plugins of Joomla. Joomla 4, 5 and 6 include Captcha - reCAPTCHA (Google reCAPTCHA version 2) and Captcha - Invisible reCAPTCHA. Other captcha plugins, such as hCaptcha or Cloudflare Turnstile plugins from other developers, work the same way.
What you need
- A Google account.
- A pair of reCAPTCHA keys for your domain from the Google reCAPTCHA admin console. Choose the key type that matches the plugin: version 2 "I'm not a robot" checkbox for Captcha - reCAPTCHA, version 2 invisible for Captcha - Invisible reCAPTCHA.
Set it up
- Go to System > Manage > Plugins and search for
captcha. - Open Captcha - reCAPTCHA (or the invisible one), paste the Site Key and the Secret Key, set the status to Enabled and save.
- Go to Components > JoomCourses, click Configuration in the sidebar and open the Cart tab.
- In Allow Captcha on Checkout, choose the plugin, or Use Global to use the captcha set in System > Global Configuration.
- Save.
The captcha now shows on the checkout form, before the submit button. A booking is saved only when the captcha is passed.
To turn it off, set Allow Captcha on Checkout to - None Selected -.
Troubleshooting
- The captcha does not show. The plugin chosen in Allow Captcha on Checkout is not enabled, or Use Global is chosen and no captcha is set in the Global Configuration.
- "Invalid domain for site key". The keys were created for another domain. Add your domain in the reCAPTCHA admin console.
- The checkout always fails the captcha check. The secret key does not belong to the site key, or the key type does not match the plugin.