// app/connect/stripe/page.tsx // // STEP 2 — Connect Stripe // Purpose: // - Explain why Stripe access is needed // - Provide a single, clear action // - Feel safe, boring, and familiar (Zapier-style) import { cookies } from "next/headers"; import { redirect } from "next/navigation"; export default async function ConnectStripePage() { const cookieStore = await cookies(); const session = cookieStore.get("session"); // Safety: if not logged in, bounce to login if (!session) { redirect("/login"); } return (
{/* -------------------------------------------------- Header -------------------------------------------------- */}

Connect Stripe

We need read-only access to your Stripe account so we can detect successful payments and automatically reconcile invoices in Xero.

{/* -------------------------------------------------- What will happen -------------------------------------------------- */}

What happens next

{/* -------------------------------------------------- Trust / reassurance -------------------------------------------------- */}

We never see your passwords.
Access can be revoked at any time from Stripe.

{/* -------------------------------------------------- Primary action -------------------------------------------------- */}
Connect Stripe →
); }