Autopay offered to clients: database 4.3.7 adds settings.config_invoice_offer_autopay and recurring_invoices.recurring_invoice_offer_autopay, an invoice from a recurring invoice with no autopay offers Set up autopay in its email and on its guest and portal pages, guest/guest_autopay.php sets it up with no sign-in through a Stripe Checkout Session in setup mode (name, email and agreement kept in its metadata and the recurring invoice's history), the card is saved and autopay turned on when Stripe sends them back, agents are told and the client gets a confirmation, the portal turns it on with a saved card, Settings > Invoices and each recurring invoice's Autopay card can turn the offer off; 26.12.3 changelog

This commit is contained in:
johnnyq
2026-12-01 14:55:29 -05:00
parent 0b770dcdf0
commit 25dac4cee2
19 changed files with 872 additions and 6 deletions

View File

@@ -77,6 +77,10 @@ echo settingsPageStart('invoice');
<?= settingsSwitch('config_invoice_paid_lead_to_client', settingsCurrent(['config_invoice_paid_lead_to_client'])['config_invoice_paid_lead_to_client'],
['help' => 'However it is paid in full - online, by autopay or a payment you record. A ticket linked to the invoice that is On Hold opens again at the same time, and its agent is told.']) ?>
<?php } ?>
<?php if (settingsColumnExists($mysqli, 'config_invoice_offer_autopay')) { ?>
<?= settingsSwitch('config_invoice_offer_autopay', settingsCurrent(['config_invoice_offer_autopay'])['config_invoice_offer_autopay'],
['help' => 'An invoice from a recurring invoice without autopay gets a Set up autopay button, in its email and on its page. The client agrees, adds a card through Stripe with no sign-in, and each invoice after that is charged on its due date. Turn it off for one recurring invoice on its page.']) ?>
<?php } ?>
<?= settingsSectionEnd() ?>
<?= settingsSectionStart('reminders', 'Reminders and statements', 'Reminders go to each client\'s primary and billing contacts while an invoice is still owed, with a button to view and pay it. A client can be left out of reminders and statements on the Billing tab of its Edit window.', 'reminders') ?>