PrestaShop Module
WhatsApp phone verification for PrestaShop 1.7 / 8 checkout and address forms.
Download: chatrixaotp.zip
What it does
- Adds a Phone verification widget under
phone/phone_mobilefields on checkout and address forms - Rejects the customer address form server-side (via the
actionValidateCustomerAddressFormhook) until the phone number is verified - Remembers the verified number in PrestaShop's encrypted customer cookie
- The Chatrixa API token stays in your shop configuration on the server
Requirements
- PrestaShop 1.7.7+ or 8.x (1.7.7 introduced the
actionValidateCustomerAddressFormhook used for enforcement) - A Chatrixa account with a connected WhatsApp number and one approved AUTHENTICATION template
Installation
- Download
chatrixaotp.zipabove. - In the PrestaShop back office: Modules → Module Manager → Upload a module, choose the zip.
- Open the module configuration:
- Enable checkout verification
- Chatrixa URL — e.g.
https://chatrixa.com - API Token — from Chatrixa → Developer Tools → Access Tokens (full access, or Specific permissions with Send and verify OTP codes —
otp:send) - Optional template name and language
- Save.
How it works
| Piece | Role |
|---|---|
displayHeader hook |
Registers the widget JS on order and address pages |
Front controller module/chatrixaotp/verify |
AJAX send / check actions proxied to the Chatrixa OTP API |
actionValidateCustomerAddressForm hook |
Adds a validation error to the phone field when it has not been verified |
The verified number lives in the signed customer cookie and enforcement runs in server-side form validation, so it cannot be skipped by manipulating the widget. Enforcement scope: it applies whenever an address form with a phone field is submitted (new address, or editing an existing one). A returning customer who reuses an already-saved address without editing it is not re-verified.