Complete WhatsApp + WooCommerce automation for Kenya with M-Pesa payment integration, order notifications, and cart recovery.
# Order Messaging Kenya Plugin
🚀 **Complete order messaging and M-Pesa automation plugin specifically built for Kenya**
This plugin integrates WhatsApp messaging, M-Pesa payments, and store order workflows to create a seamless commerce experience.
## Features
✅ **Order Notifications** - Send order confirmations, payment updates, and shipping notifications via WhatsApp
✅ **"Order via WhatsApp" Button** - Add clickable WhatsApp button on product pages
✅ **Auto Order Creation** - Automatically create orders from WhatsApp messages
✅ **M-Pesa Integration** - Daraja API integration for Safaricom M-Pesa payments
✅ **STK Push** - Send payment prompts directly to customer phones
✅ **Cart Recovery** - Automated WhatsApp reminders for abandoned carts
✅ **Conversation Logs** - Track all customer conversations and transactions
✅ **Admin Dashboard** - Complete settings panel in WordPress admin
## Requirements
- WordPress 5.0+
- PHP 7.4+
- WooCommerce 3.0+
- WhatsApp Business Account (Twilio or Meta)
- M-Pesa/Daraja API Credentials
## Installation
1. **Upload plugin files** to `/wp-content/plugins/whatsapp-woocommerce/`
2. **Activate** the plugin from WordPress admin
3. **Configure** in WordPress Admin → WhatsApp Settings
## Initial Setup Guide
### Step 1: WhatsApp Configuration
Choose between **Twilio** or **Meta** (recommended for scalability):
#### Option A: Twilio Setup
```
1. Sign up at
twilio.com
2. Create WhatsApp messaging service
3. Copy:
- Account SID
- Auth Token
- Twilio WhatsApp Phone Number
4. Add to plugin settings
```
#### Option B: Meta (WhatsApp Business API)
```
1. Create Meta Business Account
2. Apply for WhatsApp Business API
3. Get:
- Phone Number ID
- Access Token (30-day validity)
4. Add to plugin settings
```
### Step 2: M-Pesa/Daraja Configuration
```
1. Visit
developer.safaricom.co.ke
2. Create app in Daraja
3. Copy:
- Consumer Key
- Consumer Secret
4. Get from M-Pesa Portal:
- Business Till Number (600XXX)
- Online P …