LFA Posted June 21, 2022 Share Posted June 21, 2022 View File Billing Alerts This module gets the next due date and trial expiration date from WHMCS and shows alerts in TCAdmin. Features Supports toast and control panel messages/emails. Toast and email messages are configured in Settings > Mail Templates. Requirements TCAdmin 2.0.179.1 or greater WHMCS API credentials that allows the GetClientsProducts action. Configuration Go to Settings > Billing Alerts. Enable the module. Configure your WHMCS API URL, ID and secret. Allow your IP in the WHMCS or configure an access key. If you offer trials configure the trial length in days. Configure when you want TCAdmin to start showing toast and send messages/emails. Update the toast click URLs. By default the trial URL takes you to the product and due date URL takes you to unpaid invoices. Extract extract-to-whmcs-tcadmin2_advanced.zip located in TCAdmin2\ControlPanel.MVC\bin-extensions\billing-alerts-1.0.0 or /home/tcadmin/ControlPanel.MVC/bin-extensions/billing-alerts-1.0.0 to your tcadmin2_advanced folder in WHMCS. This will remove the toast notification after the user pays the invoice or upgrades from a trial. Testing To test connectivity with WHMCS: Select a game server. Click on More... Execute the [ Billing Alerts ] action. The script's output will show the game server's next due date or trial expiration date. If there's an error you can enable API logging in WHMCS: https://help.whmcs.com/m/troubleshooting/l/1420554-troubleshooting-debugging-api If this works the module's recurring task will execute every day at 6AM (master server time). If you don't want to wait you can go to Settings > Scheduled Tasks. Look for the task "[BillingAlerts] Update all trial expirations/due dates" and start it. Submitter LFA Submitted 6/21/2022 Category Modules Link to comment Share on other sites More sharing options...
GG Hosting Posted July 13, 2022 Share Posted July 13, 2022 Thanks for this module, it's very handy. Just some requests for enhancements: Some WHMCS implementatins require that headers are included in the API calls. Can the scripts for this module be updated to accomodate this where needed? As the update script only runs once a day, new customers will see an error message in the toast pop-up for the entire first day. Could a script be added to run after service creation as well? Users with dedicated servers don't have billing IDs in their services. Where a servive runs on a server that is assigned an owner (thus a dedicated server), could the billing ID of that server be used in the Billing Alert for that service? Alternatively, could a way be added to mirror the service ID of a dedicated server in each of the services on that server? 1 Link to comment Share on other sites More sharing options...
tangogc Posted September 6, 2022 Share Posted September 6, 2022 On 6/21/2022 at 11:16 PM, LFA said: View File Billing Alerts This module gets the next due date and trial expiration date from WHMCS and shows alerts in TCAdmin. Features Supports toast and control panel messages/emails. Toast and email messages are configured in Settings > Mail Templates. Requirements TCAdmin 2.0.179.1 or greater WHMCS API credentials that allows the GetClientsProducts action. Configuration Go to Settings > Billing Alerts. Enable the module. Configure your WHMCS API URL, ID and secret. Allow your IP in the WHMCS general settings > security settings or configure an access key If you offer trials configure the trial length in days. Configure when you want TCAdmin to start showing toast and send messages/emails. Update the toast click URLs. By default the trial URL takes you to the product and due date URL takes you to unpaid invoices. Extract extract-to-whmcs-tcadmin2_advanced.zip located in TCAdmin2\ControlPanel.MVC\bin-extensions\billing-alerts-1.0.0 or /home/tcadmin/ControlPanel.MVC/bin-extensions/billing-alerts-1.0.0 to your tcadmin2_advanced folder in WHMCS. This will remove the toast notification after the user pays the invoice or upgrades from a trial. Testing To test connectivity with WHMCS: Select a game server. Click on More... Execute the [ Billing Alerts ] action. The script's output will show the game server's next due date or trial expiration date. If there's an error you can enable API logging in WHMCS: https://help.whmcs.com/m/troubleshooting/l/1420554-troubleshooting-debugging-api If this works the module's recurring task will execute every day at 6AM (master server time). If you don't want to wait you can go to Settings > Scheduled Tasks. Look for the task "[BillingAlerts] Update all trial expirations/due dates" and start it. Submitter LFA Submitted 6/21/2022 Category Modules thanks for this LFA. But seem to work only for game server and not detect teamspeak expiration , it is correct ? Link to comment Share on other sites More sharing options...
tangogc Posted October 3, 2022 Share Posted October 3, 2022 On 9/6/2022 at 1:41 PM, tangogc said: thanks for this LFA. But seem to work only for game server and not detect teamspeak expiration , it is correct ? why doesn't work with teamspeak expiration ? Link to comment Share on other sites More sharing options...
4evergaming Posted May 6, 2023 Share Posted May 6, 2023 Hi, the API call takes almost a minute and a half to return the results as it gets all the products (including finished and cancelled). Something like 3000 products. Any alternative solution can be implemented? Link to comment Share on other sites More sharing options...
Dennis Posted May 8, 2023 Share Posted May 8, 2023 @4evergaming which API call is that? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now