Step-by-Step Guide to Setting Up MSG91 Transactional SMS
Step-by-Step Guide to Setting Up MSG91 Transactional SMS

Introduction
Want to add secure, passwordless login to your WordPress or WooCommerce site using MSG91 OTPs? The Happy Coders OTP Login plugin makes this incredibly simple. This step-by-step guide will walk you through configuring MSG91 for OTP login, WhatsApp delivery, and WooCommerce transactional SMS using this powerful plugin.
Step 1: Install Happy Coders OTP Login Plugin
-
Go to WordPress Admin → Plugins → Add New
-
Search for “Happy Coders OTP Login”
-
Click Install Now, then Activate
Plugin URL: https://wordpress.org/plugins/happy-coders-otp-login/
Step 2: Create and Configure Your MSG91 Account
-
Sign up or log in to https://msg91.com
-
In the MSG91 Dashboard, go to API
-
Copy your Auth Key
-
Under Sender ID, apply for a 6-character transactional sender (like
HPCDRE
) -
Go to Flow Builder and create a Transactional Flow
-
Use variables like
{{otp}}
and{{name}}
-
Make sure your content complies with India’s DLT regulations
-
-
Copy the Flow ID for use in the plugin
Step 3: Configure Plugin Settings in WordPress
-
Go to WordPress Admin → Settings → MSG91 OTP & SMS
-
Fill in the following:
-
Auth Key (from MSG91)
-
Sender ID (e.g.,
HPCDRE
) -
Flow ID (must be a DLT-approved template)
-
-
Optional:
-
Enable WhatsApp OTP fallback
-
Choose which countries are allowed via the country code dropdown
-
-
Click Save Changes
Step 4: Add OTP Form to Your Site
You can display the OTP login form anywhere using:
Or trigger the modal/popup login with a button or link like:
The plugin automatically replaces the WooCommerce My Account login/registration form too.
Step 5: Enable WooCommerce SMS Alerts (Optional)
The plugin supports MSG91-powered transactional messages for key WooCommerce events:
-
New User Registration
-
Order Placed
-
Order Shipped (with tracking)
-
Order Delivered
-
Abandoned Cart Recovery
You can configure these under the plugin’s SMS tab and choose Flow IDs for each.
Step 6: Test and Monitor Delivery
-
Register or log in with a test mobile number
-
Ensure OTP is received instantly
-
Check SMS logs inside MSG91 > Reports
-
For any delivery failures:
-
Ensure the message matches the DLT template exactly
-
Confirm the mobile number is correct and DND-free
-
Check if your DLT registration is complete (India only)
-
Conclusion
Using the Happy Coders OTP Login plugin with MSG91 gives you enterprise-grade OTP login and customer SMS updates in minutes. Whether you’re a blogger, store owner, or developer, this integration brings better security, faster logins, and improved conversions to your WordPress site.