switched to paddle inline checkout, removed paypal and most of stripe. added product sync between app and paddle.

This commit is contained in:
Codex Agent
2025-10-27 17:26:39 +01:00
parent ecf5a23b28
commit 5432456ffd
117 changed files with 4114 additions and 3639 deletions

View File

@@ -6,7 +6,7 @@ import { test, expectFixture as expect } from './utils/test-fixtures';
* This suite is currently skipped until we have stable seed data and
* authentication helpers for Playwright. Once those are in place we can
* remove the skip and let the flow exercise the welcome -> packages -> summary
* steps with mocked Stripe/PayPal APIs.
* steps with mocked Stripe/Paddle APIs.
*/
test.describe('Tenant Onboarding Welcome Flow', () => {
test('redirects unauthenticated users to login', async ({ page }) => {
@@ -47,7 +47,7 @@ test.describe('Tenant Onboarding Welcome Flow', () => {
await expect(page).toHaveURL(/\/event-admin\/welcome\/summary/);
await expect(page.getByRole('heading', { name: /Bestellübersicht/i })).toBeVisible();
// Validate payment sections. Depending on env we either see Stripe/PayPal widgets or configuration warnings.
// Validate payment sections. Depending on env we either see Stripe/Paddle widgets or configuration warnings.
const stripeConfigured = Boolean(process.env.VITE_STRIPE_PUBLISHABLE_KEY);
if (stripeConfigured) {
await expect(page.getByRole('heading', { name: /Kartenzahlung \(Stripe\)/i })).toBeVisible();
@@ -57,12 +57,7 @@ test.describe('Tenant Onboarding Welcome Flow', () => {
).toBeVisible();
}
const paypalConfigured = Boolean(process.env.VITE_PAYPAL_CLIENT_ID);
if (paypalConfigured) {
await expect(page.getByRole('heading', { name: /^PayPal$/i })).toBeVisible();
} else {
await expect(page.getByText(/PayPal nicht konfiguriert/i)).toBeVisible();
}
await expect(page.getByRole('heading', { name: /^Paddle$/i })).toBeVisible();
// Continue to the setup step without completing a purchase.
await page.getByRole('button', { name: /Weiter zum Setup/i }).click();