import { Router } from "express";
import { confirmPayment, startPayment } from "../controllers/payment.controller.js";
import { requireAuth } from "../middleware/auth.js";

export const paymentRouter = Router();

paymentRouter.post("/initialize", requireAuth, startPayment);
paymentRouter.post("/verify", requireAuth, confirmPayment);
paymentRouter.post("/refund", requireAuth, (_request, response) => response.status(202).json({ message: "Refund request queued" }));
paymentRouter.get("/transactions", requireAuth, (_request, response) => response.json([]));
