Installing Grace Period Manager¶
Upload the files¶
The extension must end up in this folder of your Paymenter installation. The folder name must be exactly GracePeriodManager.
extensions/Others/GracePeriodManager/
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
GracePeriodManagerfolder toextensions/Others/GracePeriodManager/. -
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 Grace Period Manager (Jube Hosting) 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 two tables: ext_grace_periods and ext_grace_exemptions.
Once the extension is enabled:
- the admin area has two new entries in the Extensions navigation group, Grace Periods and Suspension Exemptions,
- the extension becomes active each time Paymenter's
app:cron-jobcommand runs.
First-time setup¶
Default grace period (days) starts at 0, and there are no overrides or exemptions.
Warning
The extension changes what the cron job does as soon as it is enabled, also with a grace period of 0. Read What the cron job no longer sees first.
- On the extension's settings page, set Default grace period (days) and save.
- Open Grace Periods and add an override for each product that needs a different number of days.
- Optionally open Suspension Exemptions and exempt single services.
All three are described in Configuration. The values apply from the next run of Paymenter's daily cron job. Make sure Paymenter's scheduler is running.
Updating¶
- Upload the new ZIP with Upload Extension as described above. Paymenter replaces the
extensions/Others/GracePeriodManagerfolder 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.
The setting, the overrides and the exemptions are kept.
Uninstalling¶
- Open the extension's settings page in the admin area.
- Click Uninstall Extension and confirm.
Warning
Uninstalling drops the ext_grace_periods and ext_grace_exemptions tables. All overrides and exemptions are deleted. Services, invoices and orders are not changed.
Disabling the extension instead keeps the tables and the setting. The two admin entries disappear, and from the next cron run Paymenter suspends overdue services by its own setting again, including services that were exempt.