OpenCart Extension
WhatsApp phone verification for the OpenCart 4 checkout.
Download: chatrixa_otp.ocmod.zip
What it does
- Injects a Phone verification widget under the telephone field on the default checkout
- Blocks the checkout register/guest step server-side until the submitted phone number has been verified in the session
- The Chatrixa API token stays in your OpenCart settings on the server
Requirements
- OpenCart 4.x with the default checkout. Third-party one-page checkouts may need the enforcement event trigger adjusted to their route.
- A Chatrixa account with a connected WhatsApp number and one approved AUTHENTICATION template
Installation
- Download
chatrixa_otp.ocmod.zipabove. - In the OpenCart admin: Extensions → Installer, upload the zip.
- Go to Extensions → Extensions, choose type Modules, find Chatrixa OTP and click Install (this registers the two catalog events), then Edit.
- Enable the module and enter:
- 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
- Chatrixa URL — e.g.
- Save.
How it works
Two events are registered on install and removed on uninstall:
| Event | Trigger | Purpose |
|---|---|---|
chatrixa_otp_inject_ui |
catalog/view/checkout/checkout/after |
Appends the widget markup and JS to the checkout page |
chatrixa_otp_enforce |
catalog/controller/checkout/register.save/before |
Rejects the step with a telephone-field error when the phone is unverified |
The storefront AJAX endpoints are
extension/chatrixa_otp/otp/chatrixa.send and …chatrixa.check; the verified
number is kept in the OpenCart session, so enforcement happens server-side.
Enforcement scope: the guard runs on the checkout register/guest step —
where a phone number is entered or changed. A logged-in customer whose saved
account details are reused without re-submitting that step is not
re-verified; add the enforce event to your checkout's confirm route if you
need every order re-verified.