Add Care Pro billing, renewal, and scheduler.
Deploy Ladill Care / deploy (push) Successful in 35s

Organizations can subscribe from wallet, expire correctly on free tier, and renew nightly via care:pro-renew.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
isaacclad
2026-06-30 01:07:23 +00:00
co-authored by Cursor
parent cd415e918f
commit 4bc485dfea
10 changed files with 403 additions and 4 deletions
@@ -0,0 +1,22 @@
<?php
namespace App\Console\Commands;
use App\Services\Care\ProRenewalService;
use Illuminate\Console\Command;
class RenewProSubscriptionsCommand extends Command
{
protected $signature = 'care:pro-renew';
protected $description = 'Charge the Ladill wallet for due Care Pro subscriptions (and downgrade after the grace window).';
public function handle(ProRenewalService $renewals): int
{
$due = $renewals->dueOrganizations();
$this->info("Renewing {$due->count()} due organization(s).");
$due->each(fn ($organization) => $renewals->renewIfDue($organization));
return self::SUCCESS;
}
}