import { PaymentMethodsForm } from "@/components/dashboard/payment-methods-form"; import { PaymentMethodsList } from "@/components/dashboard/payment-methods-list"; import { db } from "@/lib/db"; import { requireCurrentUser } from "@/lib/session"; export default async function DashboardPaymentMethodsPage() { const user = await requireCurrentUser(); const profile = await db.profile.findUnique({ where: { userId: user.id }, include: { paymentMethods: { select: { id: true, type: true, label: true, value: true, network: true, description: true, sortOrder: true, isVisible: true }, orderBy: [{ sortOrder: "asc" }, { createdAt: "asc" }] } } }); if (!profile) { return

Profile not found.

; } return (

Payment Methods

Add, edit, reorder, and toggle payment methods. Validation is format-based only and not authoritative.

); }