Skip to content

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

  1. In the admin area, open Extensions, then Available Extensions.
  2. Switch to the Ready to Install / Upload tab.
  3. Click Upload Extension, choose the ZIP file and confirm.

Copy the folder by hand

  1. Unpack the ZIP and copy the GracePeriodManager folder to extensions/Others/GracePeriodManager/.
  2. 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

  1. Open Extensions, then Available Extensions, tab Ready to Install / Upload.
  2. Find Grace Period Manager (Jube Hosting) in the list and click Install. Paymenter opens the extension's settings page.
  3. 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-job command 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.

  1. On the extension's settings page, set Default grace period (days) and save.
  2. Open Grace Periods and add an override for each product that needs a different number of days.
  3. 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

  1. Upload the new ZIP with Upload Extension as described above. Paymenter replaces the extensions/Others/GracePeriodManager folder and calls the extension's upgrade step, which runs any new migrations.
  2. 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

  1. Open the extension's settings page in the admin area.
  2. 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.