Migrate billing from Paddle to Lemon Squeezy

This commit is contained in:
Codex Agent
2026-02-03 10:59:54 +01:00
parent 2f4ebfefd4
commit a0ef90e13a
228 changed files with 4369 additions and 4067 deletions

View File

@@ -60,7 +60,7 @@ class PurchaseConfirmation extends Mailable
private function formattedTotal(): string
{
$totals = $this->purchase->metadata['paddle_totals'] ?? [];
$totals = $this->purchase->metadata['lemonsqueezy_totals'] ?? [];
$currency = $totals['currency']
?? $this->purchase->metadata['currency']
?? $this->purchase->package?->currency
@@ -113,7 +113,7 @@ class PurchaseConfirmation extends Mailable
private function providerLabel(): string
{
$provider = $this->purchase->provider ?? 'paddle';
$provider = $this->purchase->provider ?? 'lemonsqueezy';
$labelKey = 'emails.purchase.provider.'.$provider;
$label = __($labelKey);