Add payment module, BFF proxy, hub/dashboard/ops/PSP/merchant screens wired to real APIs, and mark payment-frontend complete in project status. Co-authored-by: Cursor <cursoragent@cursor.com>
27 lines
1022 B
TypeScript
27 lines
1022 B
TypeScript
"use client";
|
|
|
|
import { PaymentListPage } from "@/modules/payment/components/PaymentListPage";
|
|
import { paymentApi } from "@/modules/payment/services/payment-api";
|
|
|
|
export const PaymentRequests = function PaymentRequestsPage() {
|
|
return (
|
|
<PaymentListPage
|
|
title="درخواستهای پرداخت"
|
|
description="PaymentRequest — جلسه checkout و intent پرداخت."
|
|
resourceKey="payment-requests"
|
|
fetcher={(tenantId) => paymentApi.requests.list(tenantId)}
|
|
columns={[
|
|
{ key: "amount_minor", header: "مبلغ (ریال)" },
|
|
{ key: "currency", header: "ارز" },
|
|
{ key: "payment_source", header: "منبع" },
|
|
{ key: "provider_code", header: "PSP" },
|
|
{ key: "status", header: "وضعیت", type: "status" },
|
|
{ key: "created_at", header: "تاریخ", type: "datetime" },
|
|
]}
|
|
detailHref={(row) => (row.id ? `/payment/requests/${row.id}` : null)}
|
|
/>
|
|
);
|
|
};
|
|
|
|
export default PaymentRequests;
|