=== Spark - WooCommerce CRM Connector ===
Contributors: SparkCRM
Tags: woocommerce, crm, spark, orders, automation
Requires at least: 5.8
Tested up to: 6.4
Requires PHP: 7.4
Stable tag: 1.2.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Seamlessly connect WooCommerce to Spark CRM for automated order processing.

== Description ==

Spark is a powerful integration plugin that connects your WooCommerce store with Spark CRM.

= Features =

* Automatic order synchronization
* Product to offer mapping
* Real-time webhook updates
* Bulk import/export
* Comprehensive testing suite
* Debug logging

= Requirements =

* WordPress 5.8 or higher
* WooCommerce 5.0 or higher
* PHP 7.4 or higher
* Spark CRM account with API access

== Installation ==

1. Upload the `spark` folder to `/wp-content/plugins/`
2. Activate the plugin through the 'Plugins' menu
3. Go to Spark CRM → Settings to configure
4. Map your products to offers
5. Start processing orders!

== Changelog ==

= 1.2.0 =
* Webhook signing secret is now editable so the Spark CRM webhook secret can be pasted in and X-Webhook-Signature (HMAC-SHA256 of the raw body) verified
* Setup instructions rewritten for the CRM's real triggers (transaction_approved, refund_created, ...) and default flat payload — no Basic Auth or custom parameters needed
* Subscription events accept the default payload's subscription_number / next_billing_at fields
* Debug logging no longer writes card numbers or CVV codes

= 1.1.0 =
* Added UTM and affiliate parameter tracking via cookies
* Tracking params captured from URL query strings and passed to Spark CRM API
* Supports utm_source, utm_medium, utm_campaign, utm_term, utm_content
* Supports affiliate_id, sub_affiliate_id (sub1-sub5 aliases), cohort
* 30-day cookie-based last-touch attribution

= 1.0.0 =
* Initial release
* Core Spark CRM integration
* Product mapping interface
* Webhook support
* Testing suite