feat: Complete checkout overhaul with Stripe PaymentIntent integration and abandoned cart recovery

This commit is contained in:
Codex Agent
2025-10-07 22:25:03 +02:00
parent dd5545605c
commit aa8c6c67c5
38 changed files with 1848 additions and 878 deletions

View File

@@ -40,18 +40,8 @@ export default function LoginForm({ onSuccess, canResetPassword = true, locale }
const { t } = useTranslation("auth");
const resolvedLocale = locale ?? page.props.locale ?? "de";
const loginEndpoint = useMemo(() => {
if (typeof route === "function") {
try {
return route("checkout.login");
} catch (error) {
// Ziggy might not be booted yet; fall back to locale-aware path.
}
}
return fallbackRoute(resolvedLocale);
}, [resolvedLocale]);
const loginEndpoint = '/checkout/login';
const [values, setValues] = useState({
email: "",
password: "",