Add Frontdesk Pro wallet renewal scheduling.
Deploy Ladill Frontdesk / deploy (push) Successful in 58s

Monthly auto-renew charges due organizations from the Ladill wallet and downgrades after grace when payment fails.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
isaacclad
2026-06-30 01:07:21 +00:00
co-authored by Cursor
parent fa3a691d8f
commit 1f6df54d8c
6 changed files with 144 additions and 1 deletions
@@ -80,7 +80,11 @@ class ProController extends Controller
$settings = $organization->settings ?? [];
$settings['plan'] = 'pro';
$settings['plan_expires_at'] = now()->addMonth()->toIso8601String();
$settings['auto_renew'] = true;
$settings['plan_expires_at'] = now()
->addDays((int) config('frontdesk.pro.period_days', 30))
->toIso8601String();
unset($settings['plan_renewal_error']);
$organization->update(['settings' => $settings]);
return redirect()->route('frontdesk.pro.index')