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

@@ -20,14 +20,14 @@ class TenantCheckoutSessionStatusTest extends TenantTestCase
'tenant_id' => $this->tenant->id,
'package_id' => $package->id,
'status' => CheckoutSession::STATUS_FAILED,
'provider' => CheckoutSession::PROVIDER_PADDLE,
'provider' => CheckoutSession::PROVIDER_LEMONSQUEEZY,
'provider_metadata' => [
'paddle_checkout_url' => 'https://checkout.paddle.test/checkout/123',
'lemonsqueezy_checkout_url' => 'https://checkout.lemonsqueezy.test/checkout/123',
],
'status_history' => [
[
'status' => CheckoutSession::STATUS_FAILED,
'reason' => 'paddle_failed',
'reason' => 'lemonsqueezy_failed',
'at' => now()->toIso8601String(),
],
],
@@ -40,7 +40,7 @@ class TenantCheckoutSessionStatusTest extends TenantTestCase
$response->assertOk()
->assertJsonPath('status', CheckoutSession::STATUS_FAILED)
->assertJsonPath('reason', 'paddle_failed')
->assertJsonPath('checkout_url', 'https://checkout.paddle.test/checkout/123');
->assertJsonPath('reason', 'lemonsqueezy_failed')
->assertJsonPath('checkout_url', 'https://checkout.lemonsqueezy.test/checkout/123');
}
}