Migrate billing from Paddle to Lemon Squeezy
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user