=== 99digital Store Bridge ===
Contributors: 99digital
Tags: woocommerce, whatsapp, ecommerce, store
Requires at least: 5.0
Tested up to: 6.8
Requires PHP: 7.4
Stable tag: 2.0.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Connect WooCommerce with WhatsApp for seamless order management and product synchronization.

== Description ==

This plugin integrates WooCommerce with WhatsApp-based ordering. It syncs product changes (price, stock, images, categories) to the 99digital service, lets external systems create WooCommerce orders via a REST API endpoint, and provides an admin UI for managing customer-facing WhatsApp messages.

Key features:

- Real-time product change sync (prices, stock, images, categories, variations)
- WhatsApp chatbot message configuration
- Shipping settings management
- REST API endpoint for external order creation with token authentication
- Automatic WooCommerce API key generation for integration
- Order status webhook notifications (processing/completed)

Security and privacy:

- Nonces verified on all admin AJAX endpoints
- All files include ABSPATH checks to prevent direct access
- Custom REST route requires a valid shared token
- All external communication uses HTTPS with SSL verification
- No sensitive tokens or secrets stored in plugin files

== External services ==

This plugin connects to external third-party services to provide its functionality. Users should review and accept the terms and privacy policies of all external services before using this plugin.

= 99digital Integration Services =

**What it is:** Integration service provided by 99digital for bridging WooCommerce with WhatsApp ordering.
**What it's used for:** Synchronizing product data, managing order workflows, and handling WhatsApp chatbot messages.
**What data is sent:**
- Product information (names, prices, stock, images, categories, variations)
- Store configuration data (site URL, WooCommerce API keys)
- Custom message configurations for WhatsApp integration
- Order data for processing and webhooks
**When data is sent:**
- When products are created, updated, or deleted
- When plugin settings are saved or updated
- When orders reach "processing" or "completed" status
- During initial setup and configuration
- When the plugin is uninstalled (for cleanup)
**Service provider:** 99digital
**Terms of Service:** Contact 99digital for current terms of service
**Privacy Policy:** Contact 99digital for current privacy policy

== Requirements ==

* WordPress 5.0+
* WooCommerce 5.0+
* PHP 7.4+
* Internet connection

== Installation ==

1. Upload the plugin files to `/wp-content/plugins/99digital` or install via the WordPress plugins screen.
2. Activate the plugin from the Plugins screen.
3. Go to Settings → WhatsApp Store to configure the plugin.
4. Enter the token provided to you.
5. Customize WhatsApp messages and shipping settings.

== FAQ ==

**Q: Does the plugin support products with variations?**
A: Yes, the plugin fully supports products with variations and syncs them automatically.

**Q: What happens if I delete a product?**
A: The product will be automatically removed from the synchronized catalog.

**Q: Is my data secure when transmitted?**
A: Yes, all data transmission uses secure HTTPS connections with SSL verification, and token authentication is required.

== Changelog ==

= 2.0.1 =
* Added payment_url to order creation response
* Orders now show "WhatsApp" as source in WooCommerce admin
* UI padding improvements in admin settings

= 2.0.0 =
* Rebuilt plugin architecture for production
* Improved security and code quality
* Order status webhooks for processing and completed orders
* Removed legacy code and unused dependencies

= 1.0.0 =
* Initial release

== Upgrade Notice ==

= 2.0.1 =
Added payment URL in order response, WhatsApp order source label, and admin UI improvements.

= 2.0.0 =
Major update with improved security, cleaned architecture, and new order status webhook support.
