Migrate billing from Paddle to Lemon Squeezy
Some checks failed
linter / quality (push) Has been cancelled
tests / ci (push) Has been cancelled
tests / ui (push) Has been cancelled

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

View File

@@ -19,7 +19,7 @@ class EventAddonCatalog
->mapWithKeys(function (PackageAddon $addon) {
return [$addon->key => [
'label' => $addon->label,
'price_id' => $addon->price_id,
'variant_id' => $addon->variant_id,
'increments' => $addon->increments,
]];
})
@@ -39,11 +39,11 @@ class EventAddonCatalog
return $this->all()[$key] ?? null;
}
public function resolvePriceId(string $key): ?string
public function resolveVariantId(string $key): ?string
{
$addon = $this->find($key);
return $addon['price_id'] ?? null;
return $addon['variant_id'] ?? null;
}
/**