Configuring Revenue Recovery¶
All settings are on the extension's settings page: Extensions, then edit RevenueRecovery.
Settings¶
| Setting | Type | Default | What it does |
|---|---|---|---|
| Days after invoice due date | Text (whole number) | 3 |
A pending invoice is picked up once its due date is at least this many days in the past. Values below 1 are treated as 1. |
| Discount percentage | Text (number) | 10 |
Percentage taken off the invoice when the customer opens the reactivation link. Also the value of the coupon. Limited to the range 1 to 100. |
| Discount validity (days) | Text (whole number) | 7 |
How long the reactivation link and the coupon stay valid, counted from the moment the reminder is created. Values below 1 are treated as 1. |
| Scan interval (minutes) | Text (whole number) | 60 |
Minimum time between two automatic scans. Values below 5 are treated as 5. |
| Reminder mail subject | Text | Your invoice is overdue - reactivate now with :discount% off |
Subject of the reminder e-mail. Placeholders are replaced. |
| Reminder mail body (HTML allowed) | Textarea | A styled HTML template with the offer, the coupon code, a Reactivate Invoice button, the expiry date and support and company links | Body of the reminder e-mail. Placeholders are replaced. |
An empty or 0 value in one of the four number fields falls back to that field's default. An empty subject falls back to the default subject. An empty body does not fall back to the styled template: it is replaced by a short fallback text with the customer's name, the invoice number, the coupon code, the discount and the reactivation link.
Changes apply to reminders created afterwards. Records that already exist keep the discount percentage and validity they were created with.
Placeholders¶
These placeholders work in both the subject and the body.
| Placeholder | Replaced with |
|---|---|
:name |
The customer's name, or their e-mail address if no name is set |
:invoice_number |
The invoice number, or the invoice ID if the invoice has no number |
:discount |
The discount percentage with two decimals, for example 10.00 |
:coupon |
The coupon code created for this invoice |
:reactivate_url |
The signed reactivation link |
:expires_at |
Date and time at which the offer expires |
:support_url |
Your Paymenter URL followed by /tickets |
:company_name |
The company name from Paymenter's settings, or the application name if none is set |
:company_website |
Your Paymenter URL |
There are no separate settings for branding or support links. Edit the body if you want different links or texts.
Warning
Keep :reactivate_url in the body. Without it the customer has no way to get the discount on the overdue invoice.
Notes on the e-mail body¶
- The e-mail is sent as a Paymenter system mail. Paymenter's mail layout adds a "Hi," line above your body and a line stating that the message is automated below it.
- Paymenter renders the body as a Blade template. Avoid Blade syntax such as
{{ ... }}or text starting with@(for example@mediarules in a style block) unless you intend it to be processed.
Permissions¶
The extension defines no permissions of its own.