Service Pause¶
Service Pause is a Paymenter extension for hosting providers whose customers sometimes do not need a service for a few weeks. Instead of cancelling, the customer pauses the service for a number of weeks. The service is suspended, its due date moves forward by the same number of weeks, and it is reactivated when the pause ends.

What it does¶
- Customer self-service. A customer picks a pause length (1 to 12 weeks by default), sees the new due date before submitting, and can add an optional reason.
- Due date shift. The service's due date (
services.expires_at) moves forward by the paused weeks. Pending invoices of that service that were due on or before the old due date move with it. - Suspension through Paymenter. The service status becomes
suspendedand Paymenter's ownSuspendJobis dispatched, so your server extension suspends the server the same way it does for any other suspension. Paymenter's suspension e-mail is not sent. - Automatic resume. When Paymenter's daily cron job finishes, every pause whose end has passed is ended and its service is unsuspended with Paymenter's
UnsuspendJob. - Resume early. The customer can end a running pause at any time. The unused days are taken off the due date again.
- Cron guard. While
app:cron-jobruns, services with a running pause are hidden from it, so the cron job neither suspends nor terminates them. - Limits. You set how many pauses a customer may use in twelve months and the shortest and longest pause length.
- Optional approval. Pause requests can wait as Pending approval until an administrator approves them.
- Admin list. Every pause is listed under Service Pauses in the admin area, with Approve, Force resume and Cancel pause actions and a field for internal notes.
Requirements¶
- Paymenter 1.5.x. The extension was developed and tested against Paymenter 1.5.8.
- PHP 8.3 or 8.4.
- Paymenter's scheduler must run. Pauses are ended when the daily
app:cron-jobcommand finishes.
Pages¶
- Installation: upload, enable, update and uninstall.
- Configuration: the four settings and what they do.
- Usage: the customer pages, the admin list and what happens automatically.
- FAQ: common questions and troubleshooting.
- Changelog