WooCommerce Plugin
Verify customer phone numbers at WooCommerce checkout with WhatsApp one-time passcodes.
Download: chatrixa-otp-woocommerce.zip
What it does
- Adds a Phone verification box under the billing fields on the classic checkout: Send verification code → enter code → Verify
- Login with WhatsApp (optional): customers log in on the My Account page by entering their billing phone and the code they receive on WhatsApp — no password. Accounts are matched server-side by billing phone; administrator and shop-manager accounts are always excluded
- Blocks order placement server-side until the billing phone is verified
- Optionally remembers verified phones per customer account, so returning customers skip verification
- Stamps verified orders with
_chatrixa_otp_verifiedorder meta - Your API token stays in WordPress options on the server — it is never sent to the shopper's browser
Requirements
- WordPress 5.8+ with WooCommerce 6.0+
- Classic checkout (the
[woocommerce_checkout]shortcode). The block-based checkout is not yet supported — block checkouts are left unaffected, not broken. - A Chatrixa account with a connected WhatsApp number and one approved AUTHENTICATION template
Installation
- Download the zip above.
- In WordPress: Plugins → Add New → Upload Plugin, choose the zip, install and activate.
- Open WooCommerce → Chatrixa OTP.
- Enter:
- Chatrixa URL — e.g.
https://chatrixa.com(or your own installation URL) - API Token — from Chatrixa → Developer Tools → Access Tokens (full access, or Specific permissions with Send and verify OTP codes —
otp:send) - Optional: a specific template name/language, code length, expiry
- Chatrixa URL — e.g.
- Optionally enable Login with WhatsApp.
- Save. The settings page shows a live connection check.
How enforcement works
The verified phone number is stored in the WooCommerce session on the server during the AJAX verify call. At checkout submission the plugin compares the billing phone against the session (and, when verify once per customer is enabled, the customer's user meta) — a shopper cannot bypass verification by manipulating the browser.
Troubleshooting
| Symptom | Fix |
|---|---|
| "No approved AUTHENTICATION template found" | Create an Authentication template in Chatrixa → Templates, wait for approval, sync |
| Codes not arriving | Confirm the phone is a WhatsApp number in international format; check Chatrixa → Chats for the delivery status |
| "Connection failed" on the settings page | Check the URL has no trailing path and the token was copied fully |
| Widget not visible at checkout | Your theme must use the classic checkout shortcode, not the checkout block |