=== ShortNotify for WooCommerce ===
Contributors: reynaldomota
Tags: whatsapp, woocommerce, notifications, order notifications, brazil
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
Requires Plugins: woocommerce
Stable tag: 1.1.2
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Connect your WooCommerce store to ShortNotify to send order and tracking notifications through WhatsApp.

== Description ==

ShortNotify connects your WooCommerce store to the ShortNotify service so you can send transactional WhatsApp notifications with a simple setup.

With this plugin you can:

* Connect your store to ShortNotify using your user token and instance ID
* Check the connection status directly inside WordPress
* See trial state in the admin (`Trial ativo` and `Fim de trial`)
* See message usage counters in the admin (`used/limit`)
* Create templates for key WooCommerce events
* Use the plugin in English and Portuguese (based on your WordPress language)

Supported events:

* New order
* Payment approved
* Order completed
* Order cancelled
* Tracking code added

The plugin itself is free. Message delivery requires an active ShortNotify account.

Recommended flow:

1. Connect your account with token and instance ID.
2. Validate status in the plugin dashboard.
3. Enable and customize WooCommerce templates.
4. Place a test order and confirm delivery in WhatsApp.

Official website:

* [https://shortnotify.com](https://shortnotify.com)

Dashboard:

* [https://shortnotify.com/login](https://shortnotify.com/login)

== External services ==

This plugin connects to the external ShortNotify service to verify instance status and send WhatsApp messages.

It sends data to:

* `https://shortnotify.com/api/instances/{INSTANCE_ID}/status`
* `https://shortnotify.com/api/instances/{INSTANCE_ID}/send`

Data sent:

* User token
* Instance ID
* Store domain and store URL (for trial/domain protection)
* Customer phone number
* Message content
* Message language

This data is used only to authenticate the integration and deliver the notification.

Service documents:

* Site: [https://shortnotify.com](https://shortnotify.com)
* Privacy: [https://shortnotify.com/privacidade](https://shortnotify.com/privacidade)
* Terms: [https://shortnotify.com/termos](https://shortnotify.com/termos)

== Installation ==

1. Upload the plugin folder to `/wp-content/plugins/` or install it through the WordPress admin.
2. Activate the plugin from the `Plugins` screen in WordPress.
3. Open `ShortNotify` in the admin menu.
4. Enter your user token and instance ID.
5. Click `Check status` to validate the connection.
6. Configure and save WooCommerce event templates.
7. Run a real order test in your store.

== Frequently Asked Questions ==

= Is the plugin paid? =

No. The plugin itself is free.

= What is charged? =

The ShortNotify service. To send messages you need an active account and a configured instance in ShortNotify.

= Do I need WooCommerce? =

Yes. The plugin was built to work with WooCommerce order events.

= Does the plugin send bulk marketing messages? =

No. The current focus is transactional order and tracking notifications.

= Does the plugin support English and Portuguese? =

Yes. The admin UI follows your WordPress language (English/Portuguese).

= Where do I get token and instance ID? =

In your ShortNotify dashboard after creating and connecting your instance.

== Screenshots ==

1. Connection screen with instance status
2. Usage cards (license and cycle counters)
3. WooCommerce templates screen with placeholders

== Changelog ==

= 1.1.2 =

* Added trial status rendering in admin (`Trial ativo` / `Fim de trial`)
* Added usage counter card in admin (trial and paid cycle counters)
* Added plugin channel + site context headers/payload for WordPress-specific trial protection
* Added smarter local development API base URL resolution while keeping `https://shortnotify.com` for production
* Improved internationalization behavior for English/Portuguese admin experience

= 0.1.1 =

* English readme and plugin description for WordPress.org review
* Removed the unnecessary load_plugin_textdomain() call for WordPress.org-hosted translations

= 0.1.0 =

* Connection to ShortNotify using token and instance ID
* Status check from the WordPress admin
* Templates for main WooCommerce events
* Order and tracking notification delivery

== Upgrade Notice ==

= 1.1.2 =

Adds trial status/usage cards in admin and trial-end UX improvements.

= 0.1.1 =

Review update release for WordPress.org submission fixes.

First public release of the ShortNotify plugin for WooCommerce.
