=== Chatrixa OTP for WooCommerce ===
Contributors: chatrixa
Tags: whatsapp, otp, phone verification, woocommerce, checkout
Requires at least: 5.8
Tested up to: 6.6
Requires PHP: 7.4
Stable tag: 1.1.0
License: GPLv2 or later

Verify customer phone numbers at WooCommerce checkout and let customers log
in with WhatsApp one-time passcodes, delivered via your Chatrixa account.

== Description ==

Chatrixa OTP adds WhatsApp phone verification to the WooCommerce checkout:

* One-click "Send verification code" next to the billing phone field
* **Login with WhatsApp**: customers log in on the My Account page with a
  code sent to their billing phone — no password needed (optional, off by
  default; administrator and shop-manager accounts are excluded)
* Codes are generated, delivered, and verified by your Chatrixa server —
  the store never sees or stores raw codes
* Server-side enforcement: orders cannot be placed until the phone is verified
* Optional "verify once per customer" mode for returning customers
* Verified orders are stamped with `_chatrixa_otp_verified` order meta
* Your Chatrixa API token stays on the server (never sent to the browser)

Requirements:

* A Chatrixa account with a connected WhatsApp Business number
* An approved AUTHENTICATION-category WhatsApp template
* An API access token (Chatrixa → Developer Tools → Access Tokens) with full access or the "Send and verify OTP codes" (otp:send) permission
* Classic checkout ([woocommerce_checkout] shortcode). The block-based
  checkout is not yet supported.

== Installation ==

1. Upload the plugin zip via Plugins → Add New → Upload Plugin, and activate it.
2. Go to WooCommerce → Chatrixa OTP.
3. Enter your Chatrixa URL (e.g. https://chatrixa.com) and API token.
4. Optionally set a specific AUTHENTICATION template name and language.
5. Save. The settings page shows the live connection status.

== Frequently Asked Questions ==

= Where do I get an API token? =
In your Chatrixa dashboard under Developer Tools → Access Tokens. Choose full access, or specific permissions with "Send and verify OTP codes" (otp:send).

= Which WhatsApp template is used? =
By default the most recent approved AUTHENTICATION template on your WhatsApp
Business Account. You can pin a specific template name in the settings.

= Does it work with the block checkout? =
Not yet — the verification UI hooks into the classic checkout form. Server
validation only applies to classic checkout submissions, so block checkouts
are unaffected (not blocked).

== Changelog ==

= 1.1.0 =
* Login with WhatsApp on the My Account page (optional setting).
* Default Chatrixa URL corrected to https://chatrixa.com.

= 1.0.0 =
* Initial release: checkout phone verification via Chatrixa OTP API.
