2. Go to Settings, expand WHMCS Module as shown below.
3. Click on the Download to download the zip file of the OTP SMS or WhatsApp API module.
4. Upload it to your WHMCS home directory and unzip it.
5. Once you unzip it, go to your WHMCS admin panel.
6. Open WHMCS admin panel, go to System Settings.
7. Click on Products/Services.
8. First, we have to create Group under which we will add SMS Plans.
9. After creating group like we have added "SMS Package", click on "Create a New Product" to add a OTP SMS or WhatsApp API plans.
10. On the Next Page, fill the form as below: a. Select "Other". b. Select the Product Group in which you want to add this SMS plan. c. Select the Module. d. Toggle OFF "Creates as Hidden". e. Click on Continue.
11. Click on Pricing Tab, make the changes as below.
12. Next, click on the "Module Settings" tab, and make the changes as below. a. Select Module Name. b. Enter API Key. c. Update the commission in percentage you want to add to our pricing. d. Select "Automatically setup the product as soon as the first payment is received" to automatically complete the order after payment.
13. Next, click on the "Configurable Options" tab and select the module. a. SMS Plans for OTP SMS b. WhatsApp Plans for WhatsApp API
14. Click on Save Changes.
15. Schedule the below cron job to run every 5 minutes. For OTP SMS: php path_to_whmcs/modules/servers/dvsms/cron.php For WhatsApp API: php path_to_whmcs/modules/servers/dvwap/cron.php
16. Now, you can see the plans on your website.
17. If you want to add both modules (OTP SMS and WhatsApp API), you have to add another product.
Note: Whitelist your WHMCS IP in the admin panel.
Comments (0)
Leave a Reply
Your email address and mobile will not be published.