Open Addons → ShoHost WhatsApp → Settings.
1. Choose a backend and add credentials
Pick the API provider from the provider cards, enter its credentials, save and test the connection.
| Backend | What to enter |
|---|---|
| ShoHost WA | Your ShoHost WA API key |
| Meta WhatsApp Cloud API | The Cloud API token (a permanent system-user access token), the phone number ID of the sending number and the WhatsApp Business Account (WABA) ID, which template sync needs |
| MPWA | Your MPWA gateway URL and key |
API secrets are stored encrypted.
2. Meta webhooks (Cloud API only)
Paste the module’s webhook callback URL into your Meta app and verify the signature. This turns on delivered and read status in the logs, inbound messages, menu flows and the ticket reply bridge.
3. Map WHMCS events to templates
In Templates, pick an event such as Invoice Created, write or select a template, and use merge fields for the client name, invoice number, amount and pay link. Repeat for reminders, overdue, paid and ticket replies. On Meta Cloud, use templates Meta has approved. You can import default templates and sync approved WABA templates from Meta.
Example template (use the exact merge-field names your template editor lists):
Hi {client_name}, invoice #{invoice_id} for {amount} is due on {due_date}. Pay here: {invoice_link}
Template types are email-based, function-based and bulk message templates.
4. Phone verification (OTP)
Enable phone verification, then in Settings → outbound policy choose when it is enforced:
- after login (a WhatsApp OTP modal for signed-in clients)
- before registration
- before checkout
- or a combination
With Before registration, the phone field on register.php shows “Verify this number on WhatsApp before you continue” with a Send code button. Register stays disabled until the guest enters the 6-digit code and taps Verify. A green Verified badge then appears, and the verified number is stored with the new client.
You can also require a verified number before outbound marketing or transactional sends.
5. Quiet hours and opt-in
- Quiet hours: defer non-urgent messages outside hours you define.
- Client opt-in preferences: WhatsApp and marketing toggles in the client area.
- Client chat button: a floating WhatsApp button in the client area with a prefilled message.
6. Enable hooks for production
Sync templates, send a test message, then switch on the hooks for your production events.
Backup and restore settings
Export settings and templates as JSON, and import them on another install. Secrets are excluded from the export.
Next: Usage