How Frictionless CAPTCHA Works (Implicit Rendering)
Implementation Details
This example demonstrates how to use Procaptcha in frictionless mode with implicit rendering:
- Import the Procaptcha script
- Add a div with the procaptcha class
- Set data-* attributes to configure the CAPTCHA
- Handle the verification result in the callback function
Key Code Example
<div
class="procaptcha"
data-theme="light"
data-sitekey="%PROSOPO_SITE_KEY_FRICTIONLESS%"
data-failed-callback="onCaptchaFailed"
data-callback="onCaptchaVerified"
data-captcha-type="frictionless"
></div>
Execution Flow
- On page load, Procaptcha scans for elements with the procaptcha class
- The CAPTCHA verification happens when the user interacts with it
- When verification is complete, the callback function is called with the token
- On successful verification, the form can be submitted with the token