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>
25 lines
896 B
TypeScript
25 lines
896 B
TypeScript
"use client";
|
|
|
|
import { PaymentListPage } from "@/modules/payment/components/PaymentListPage";
|
|
import { paymentApi } from "@/modules/payment/services/payment-api";
|
|
|
|
export const PaymentMerchants = function PaymentMerchantsPage() {
|
|
return (
|
|
<PaymentListPage
|
|
title="حسابهای پذیرنده"
|
|
description="MerchantAccount — نیازمند باندل payment.torbat_pay.merchant"
|
|
resourceKey="merchants"
|
|
fetcher={(tenantId) => paymentApi.merchants.list(tenantId)}
|
|
columns={[
|
|
{ key: "code", header: "کد" },
|
|
{ key: "name", header: "نام" },
|
|
{ key: "status", header: "وضعیت", type: "status" },
|
|
{ key: "created_at", header: "تاریخ", type: "datetime" },
|
|
]}
|
|
detailHref={(row) => (row.id ? `/payment/merchants/${row.id}` : null)}
|
|
/>
|
|
);
|
|
};
|
|
|
|
export default PaymentMerchants;
|