=== EsyMsg ===
Contributors: esymsg, nolennews45
Tags: whatsapp, otp, authentication, woocommerce, form builder
Requires at least: 5.0
Tested up to: 7.0
Stable tag: 2.0.0
Requires PHP: 7.2
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Secure your WordPress site with WhatsApp OTP authentication and automate WooCommerce notifications. Fully supports major form builders.

== Description ==

ESYMSG WhatsApp Integration is a plugin to secure your WordPress site with WhatsApp OTP authentication and engage your customers through automated WooCommerce notifications.

With a deep integration into the ESYMSG API, this plugin helps you verify phone numbers for logins, registrations, and form submissions across popular form builders, ensuring your database is spam-free and secure.

= Features =
* **Login & Registration Security:** Secure your standard WordPress and WooCommerce logins with WhatsApp OTP verification. Includes strict User Meta validation to ensure the verified phone belongs to the account.
* **WooCommerce Notifications:** Automatically send WhatsApp messages for order status changes (Processing, Completed, On Hold, etc.).
* **Abandoned Cart Recovery:** Automatically track checkouts and send delayed WhatsApp reminders to recover lost sales.
* **Universal Form Integration:** Secure your lead forms with OTP verification. Fully supports:
  - Contact Form 7
  - Elementor Forms
  - Gravity Forms
  - WPForms
  - Ninja Forms
  - Formidable Forms
  - Fluent Forms
  - Forminator
  - Everest Forms
* **Developer API:** Trigger notifications manually using our built-in webhook/API architecture.

== Installation ==

1. Upload the `esymsg-integration` folder to the `/wp-content/plugins/` directory.
2. Activate the plugin through the 'Plugins' menu in WordPress.
3. Navigate to **ESYMSG Settings** in the WordPress admin sidebar.
4. Enter your ESYMSG API Key in the **API Credentials** tab.
5. Configure your specific integrations (WooCommerce, Forms, etc.) in the **Integrations** tab.

== Frequently Asked Questions ==

= Do I need an ESYMSG account? =
Yes. You will need an active ESYMSG account and an API Key to send WhatsApp messages and OTPs.

= Does it support custom forms? =
Yes! If your form builder is not natively supported, you can use the "Custom Forms" integration by simply providing the CSS selectors for your form and phone input fields.

= Is the WooCommerce Abandoned Cart feature automatic? =
Yes! Once enabled, the plugin tracks checkout sessions and uses WordPress Cron to send recovery messages automatically based on your configured delay.

== Screenshots ==

1. ESYMSG API Configuration
2. Universal Form Builder Integrations
3. WooCommerce Abandoned Cart Setup
4. Frontend WhatsApp OTP Verification Popup

== External services ==

This plugin connects to the EsyMsg API (app.esymsg.com) to send WhatsApp messages and OTPs.

It sends the user's provided phone number, message templates, and order details (for WooCommerce) to the API when a notification or OTP is triggered.
This service is provided by "EsyMsg": [terms of service](https://app.esymsg.com/terms-and-conditions), [privacy policy](https://app.esymsg.com/privacy-policy).

== Changelog ==

= 2.0.0 =
* Major release with full WhatsApp OTP authentication, WooCommerce Order status notifications, Abandoned Cart recovery, and 9 Form Builder integrations.

= 1.0.0 =
* Initial release of ESYMSG WhatsApp Integration plugin.
