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

2
db.sql
View File

@@ -3503,6 +3503,7 @@ CREATE TABLE `recurring_invoices` (
`recurring_invoice_note` text DEFAULT NULL,
`recurring_invoice_auto_send` tinyint(1) NOT NULL DEFAULT 1,
`recurring_invoice_email_notify` tinyint(1) NOT NULL DEFAULT 1,
`recurring_invoice_offer_autopay` tinyint(1) NOT NULL DEFAULT 1,
`recurring_invoice_created_at` datetime NOT NULL DEFAULT current_timestamp(),
`recurring_invoice_updated_at` datetime DEFAULT NULL ON UPDATE current_timestamp(),
`recurring_invoice_archived_at` datetime DEFAULT NULL,
@@ -4161,6 +4162,7 @@ CREATE TABLE `settings` (
`config_invoice_late_fee_percent` decimal(5,2) NOT NULL DEFAULT 0.00,
`config_invoice_paid_notification_email` varchar(200) DEFAULT NULL,
`config_invoice_paid_lead_to_client` tinyint(1) NOT NULL DEFAULT 1,
`config_invoice_offer_autopay` tinyint(1) NOT NULL DEFAULT 1,
`config_invoice_show_tax_id` tinyint(1) NOT NULL DEFAULT 0,
`config_tax_default_id` int(11) NOT NULL DEFAULT 0,
`config_tax_time` tinyint(1) NOT NULL DEFAULT 0,