A simple WHMCS hook that automatically processes everything related to the cancellation of a service.
- Adds a note to the service referencing the date, admin user and ticket ID (if supplied in the custom field) to the service.
- Cancels all related addons and also adds a note to them with similar to the above note on the service.
- Cancels any related unpaid invoices and if those invoices have other services on them, the invoice gets split and a new invoice is created for the unrelated services. A new invoice email is also sent out.
-
Copy the
includes
folder to your root WHMCS directory. -
Create a custom field on your products with the name Cancellation Ticket ID
-
Enjoy! Once you cancel a service, everything is done in the background.
Feel free to fork the repo, make changes, then create a pull request! For ideas on what you can help with, check the project issues.