Installing Service Pause¶
Upload the files¶
The extension must end up in this folder of your Paymenter installation. The folder name must be exactly ServicePause.
extensions/Others/ServicePause/
You can get it there in two ways.
Upload the ZIP in the admin area
- In the admin area, open Extensions, then Available Extensions.
- Switch to the Ready to Install / Upload tab.
- Click Upload Extension, choose the ZIP file and confirm.
Copy the folder by hand
- Unpack the ZIP and copy the
ServicePausefolder toextensions/Others/ServicePause/. -
If the extension does not show up in the next step, run these commands in the Paymenter root directory:
composer dump-autoload php artisan optimize:clear
Install and enable¶
- Open Extensions, then Available Extensions, tab Ready to Install / Upload.
- Find Service Pause (JUBE) in the list and click Install. Paymenter opens the extension's settings page.
- Switch on Enabled and save.
Installing and enabling both run the extension's migration, which creates one table: ext_service_pauses.
Once the extension is enabled:
- the admin area has a new entry Service Pauses in the Extensions navigation group,
- customers get a Service Pauses entry in their account navigation,
- the cron guard and the automatic resume are active.
First-time setup¶
The extension works with its defaults: up to 4 pauses per customer in twelve months, 1 to 12 weeks per pause, no approval needed. To change this, see Configuration.
Make sure Paymenter's scheduler is running. Pauses are ended when Paymenter's daily app:cron-job command finishes. Without it, a pause only ends when the customer opens one of the pause pages.
Updating¶
- Upload the new ZIP with Upload Extension as described above. Paymenter replaces the
extensions/Others/ServicePausefolder and calls the extension's upgrade step, which runs any new migrations. - If you replace the folder by hand instead, disable and re-enable the extension afterwards. Enabling runs any new migrations.
Existing pauses and settings are kept.
Uninstalling¶
- Open the extension's settings page in the admin area.
- Click Uninstall Extension and confirm.
Warning
Uninstalling drops the ext_service_pauses table. The whole pause history is deleted. Services and invoices are not changed back: a service that is paused at that moment stays suspended with its shifted due date, and nothing will reactivate it. End or cancel all running pauses in Service Pauses before you uninstall.
Warning
Disabling the extension keeps the table and the settings, but it also stops the cron guard and the automatic resume. Services that are paused at that moment stay suspended until you unsuspend them yourself or enable the extension again, and Paymenter's cron job treats them like any other suspended service. The customer pages return a 404 while the extension is disabled.