=== SmartMessage SMS for WooCommerce ===
Contributors: Intech IT Solutions
Tags: sms, woocommerce sms, sri lanka sms, dialog sms, mobitel sms, otp, cod verification, courier tracking
Requires at least: 5.6
Tested up to: 6.7
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Enterprise Sri Lankan SMS Gateway for WooCommerce. Automated order status notifications, courier tracking updates, live wallet balance, and Cash-on-Delivery (COD) fraud shield.

== Description ==

SmartMessage by Intech is the premier business messaging infrastructure for Sri Lankan enterprises and e-commerce stores. 

This official WooCommerce extension connects your store directly to SmartMessage high-throughput SMS gateway, enabling automated customer and admin SMS notifications across all Sri Lankan mobile operators (Dialog, Mobitel, Airtel, Hutch).

= Key Features =
* **Instant Order Status SMS**: Automated notifications for Order Processing, Shipped/Dispatched, Delivered, and Cancelled.
* **Courier Tracking Integration**: Dynamic `{courier_name}` and `{tracking_number}` placeholders for automated shipment updates.
* **Cash-on-Delivery (COD) Fraud Shield**: Require a 4-digit SMS OTP verification before customer checkout to eliminate bogus orders and courier returns.
* **Admin Order Alerts**: Instant SMS alert to the store owner whenever a new order is received.
* **Live Wallet Balance**: View your remaining LKR balance and estimated SMS quota right inside your WordPress Admin dashboard.
* **Diagnostic Test Console**: Send a test SMS directly from the settings page to verify your credentials.
* **Unicode Support**: Supports Sinhala, Tamil, and English alphanumeric sender masks.

== Installation ==

1. Upload the `smartmessage-sms-for-woocommerce.zip` file via **WordPress Admin > Plugins > Add New > Upload Plugin**.
2. Click **Activate Plugin**.
3. Go to **WooCommerce > SmartMessage SMS** in your WordPress sidebar.
4. Paste your **API Secret Key** and approved **Sender Mask** from your SmartMessage Client Portal.
5. Configure your notification templates and click **Save Changes**.

== Frequently Asked Questions ==

= Do I need a SmartMessage account? =
Yes. You can sign up at https://smartmessage.lk/ to get your API Key and Sender ID.

= Does this work with all Sri Lankan mobile networks? =
Yes! SmartMessage delivers directly to Dialog, Mobitel, Airtel, and Hutch numbers (both 07XXXXXXXX and 947XXXXXXXX formats).

= Can I customize the SMS templates? =
Yes. You can customize templates for all order statuses using tags like `{customer_name}`, `{order_number}`, `{order_total}`, `{courier_name}`, and `{tracking_number}`.

== Changelog ==

= 1.0.0 =
* Initial public release.
* Automated WooCommerce order triggers.
* Live balance display via `api/balance.php`.
* Cash-on-Delivery SMS OTP anti-fraud verification.
