Welcome to the official GitHub repository for the Prosopo Procaptcha Integration for PrestaShop!
Minimum requirements:
- PHP 7.4+
- PrestaShop 8.0.0+
Installation
- Download the latest module release
- Go to your Prestashop dashboard -> Modules -> Module Manager -> Upload a Module
- Visit the Module Manager page -> Locate Prosopo Procaptcha in the list -> Click Enable
- After enabling, click Configure and enter your Secret Key and Site Key (you can get these from portal.prosopo.io)
- Enable protection for your target forms (e.g., registration, login, contact forms) and click Save
- Make sure the captcha widget preview below the form is displayed correctly
Now you're all set! Enjoy enhanced anti-spam protection with Prosopo Procaptcha.
In the Classic (default) theme:
/registration
/login
/password-recovery
/contact-us
This module aims to support the core forms, but also it can simplify Procaptcha integration in your custom form.
use Io\Prosopo\Procaptcha\Widget\Widget;
echo '<form>'; // your opening form tag
// ... your form inputs go here
echo Widget::renderWidget(); // added call that will render the Procaptcha widget
echo '</form>'; // your closing form tag
use Io\Prosopo\Procaptcha\Widget\Widget;
// your inputs validation logic goes here
if(! Widget::verifyToken()) {
// todo accommodate to your fail handling
echo Widget::getValidationError();
exit;
}
We would be excited if you decide to contribute 🤝
Please read the for-devs.md file for project guidelines and agreements.