import { cookies } from "next/headers"; import { redirect } from "next/navigation"; export default async function ConnectStripePage() { const cookieStore = await cookies(); const session = cookieStore.get("session"); if (!session) { redirect("/login"); } return (
{/* Navigation */}
{/* Header */}
Step 2 of 3

Connect Stripe

We need read-only access to your Stripe account to monitor successful payments and automatically create invoices in Xero.

{/* Two Column Layout */}
{/* Left Column - Information */}
{/* What we access */}

What we can access

  • Payment events

    Successful charges and refunds

  • Account information

    Your account ID and basic metadata

{/* What we cannot do */}

What we cannot do

  • Charge customers or initiate refunds
  • See or store sensitive payment information
  • Modify your Stripe settings or payouts
{/* How it works */}

What happens next

  1. 1 You'll be securely redirected to Stripe
  2. 2 Select which Stripe account to connect
  3. 3 You'll be returned here to connect Xero
{/* Right Column - CTA Card */}

Ready?

Connect Stripe →

You'll be redirected to Stripe's secure OAuth page

{/* Trust badges */}

🔒 Your security matters: We use OAuth, so you can revoke access from Stripe at any time. We never see or store your Stripe password.

); }