🐛 fix(payment): Add notification URL field to payment management interface

This commit is contained in:
web@ppanel 2025-03-11 21:22:18 +07:00
parent 6752420ba5
commit 5c710e1add
27 changed files with 28 additions and 9 deletions

View File

@ -197,7 +197,7 @@ export default function PaymentForm<T>({
<FormLabel>{t('domain')}</FormLabel> <FormLabel>{t('domain')}</FormLabel>
<FormControl> <FormControl>
<EnhancedInput <EnhancedInput
placeholder={t('domainPlaceholder', { example: 'https://example.com' })} placeholder={t('domainPlaceholder', { example: 'http(s)://example.com' })}
value={field.value} value={field.value}
onValueChange={(value) => form.setValue('domain', value as string)} onValueChange={(value) => form.setValue('domain', value as string)}
/> />

View File

@ -96,12 +96,8 @@ export default function PaymentTable() {
cell: ({ row }) => <Badge>{t(row.getValue('platform'))}</Badge>, cell: ({ row }) => <Badge>{t(row.getValue('platform'))}</Badge>,
}, },
{ {
accessorKey: 'domain', accessorKey: 'notify_url',
header: t('domain'), header: t('notify_url'),
cell: ({ row }) => {
const domain = row.getValue('domain') as string;
return domain ? <Badge variant='outline'>{domain}</Badge> : '--';
},
}, },
{ {
accessorKey: 'fee', accessorKey: 'fee',

View File

@ -37,6 +37,7 @@
"namePlaceholder": "Zadejte název platební metody", "namePlaceholder": "Zadejte název platební metody",
"nameRequired": "Název je povinný", "nameRequired": "Název je povinný",
"noFee": "Žádný poplatek", "noFee": "Žádný poplatek",
"notify_url": "URL pro oznámení",
"paymentManagement": "Správa plateb", "paymentManagement": "Správa plateb",
"percentFee": "Procento", "percentFee": "Procento",
"platform": "Platforma", "platform": "Platforma",

View File

@ -37,6 +37,7 @@
"namePlaceholder": "Geben Sie den Namen der Zahlungsmethode ein", "namePlaceholder": "Geben Sie den Namen der Zahlungsmethode ein",
"nameRequired": "Name ist erforderlich", "nameRequired": "Name ist erforderlich",
"noFee": "Keine Gebühr", "noFee": "Keine Gebühr",
"notify_url": "Benachrichtigungs-URL",
"paymentManagement": "Zahlungsverwaltung", "paymentManagement": "Zahlungsverwaltung",
"percentFee": "Prozentsatz", "percentFee": "Prozentsatz",
"platform": "Plattform", "platform": "Plattform",

View File

@ -37,6 +37,7 @@
"namePlaceholder": "Enter payment method name", "namePlaceholder": "Enter payment method name",
"nameRequired": "Name is required", "nameRequired": "Name is required",
"noFee": "No Fee", "noFee": "No Fee",
"notify_url": "Notify URL",
"paymentManagement": "Payment Management", "paymentManagement": "Payment Management",
"percentFee": "Percentage", "percentFee": "Percentage",
"platform": "Platform", "platform": "Platform",

View File

@ -37,6 +37,7 @@
"namePlaceholder": "Ingrese el nombre del método de pago", "namePlaceholder": "Ingrese el nombre del método de pago",
"nameRequired": "El nombre es obligatorio", "nameRequired": "El nombre es obligatorio",
"noFee": "Sin Tarifa", "noFee": "Sin Tarifa",
"notify_url": "URL de notificación",
"paymentManagement": "Gestión de Pagos", "paymentManagement": "Gestión de Pagos",
"percentFee": "Porcentaje", "percentFee": "Porcentaje",
"platform": "Plataforma", "platform": "Plataforma",

View File

@ -37,6 +37,7 @@
"namePlaceholder": "Ingrese el nombre del método de pago", "namePlaceholder": "Ingrese el nombre del método de pago",
"nameRequired": "El nombre es obligatorio", "nameRequired": "El nombre es obligatorio",
"noFee": "Sin Tarifa", "noFee": "Sin Tarifa",
"notify_url": "URL de notificación",
"paymentManagement": "Gestión de Pagos", "paymentManagement": "Gestión de Pagos",
"percentFee": "Porcentaje", "percentFee": "Porcentaje",
"platform": "Plataforma", "platform": "Plataforma",

View File

@ -37,6 +37,7 @@
"namePlaceholder": "نام روش پرداخت را وارد کنید", "namePlaceholder": "نام روش پرداخت را وارد کنید",
"nameRequired": "نام الزامی است", "nameRequired": "نام الزامی است",
"noFee": "بدون هزینه", "noFee": "بدون هزینه",
"notify_url": "آدرس اطلاع‌رسانی",
"paymentManagement": "مدیریت پرداخت", "paymentManagement": "مدیریت پرداخت",
"percentFee": "درصد", "percentFee": "درصد",
"platform": "پلتفرم", "platform": "پلتفرم",

View File

@ -37,6 +37,7 @@
"namePlaceholder": "Syötä maksutavan nimi", "namePlaceholder": "Syötä maksutavan nimi",
"nameRequired": "Nimi on pakollinen", "nameRequired": "Nimi on pakollinen",
"noFee": "Ei maksua", "noFee": "Ei maksua",
"notify_url": "Ilmoitus-URL",
"paymentManagement": "Maksujen hallinta", "paymentManagement": "Maksujen hallinta",
"percentFee": "Prosentti", "percentFee": "Prosentti",
"platform": "Alusta", "platform": "Alusta",

View File

@ -37,6 +37,7 @@
"namePlaceholder": "Entrez le nom du mode de paiement", "namePlaceholder": "Entrez le nom du mode de paiement",
"nameRequired": "Le nom est requis", "nameRequired": "Le nom est requis",
"noFee": "Pas de frais", "noFee": "Pas de frais",
"notify_url": "URL de notification",
"paymentManagement": "Gestion des paiements", "paymentManagement": "Gestion des paiements",
"percentFee": "Pourcentage", "percentFee": "Pourcentage",
"platform": "Plateforme", "platform": "Plateforme",

View File

@ -37,6 +37,7 @@
"namePlaceholder": "भुगतान विधि का नाम दर्ज करें", "namePlaceholder": "भुगतान विधि का नाम दर्ज करें",
"nameRequired": "नाम आवश्यक है", "nameRequired": "नाम आवश्यक है",
"noFee": "कोई शुल्क नहीं", "noFee": "कोई शुल्क नहीं",
"notify_url": "सूचना URL",
"paymentManagement": "भुगतान प्रबंधन", "paymentManagement": "भुगतान प्रबंधन",
"percentFee": "प्रतिशत", "percentFee": "प्रतिशत",
"platform": "प्लेटफ़ॉर्म", "platform": "प्लेटफ़ॉर्म",

View File

@ -37,6 +37,7 @@
"namePlaceholder": "Adja meg a fizetési mód nevét", "namePlaceholder": "Adja meg a fizetési mód nevét",
"nameRequired": "A név megadása kötelező", "nameRequired": "A név megadása kötelező",
"noFee": "Nincs díj", "noFee": "Nincs díj",
"notify_url": "Értesítési URL",
"paymentManagement": "Fizetéskezelés", "paymentManagement": "Fizetéskezelés",
"percentFee": "Százalékos díj", "percentFee": "Százalékos díj",
"platform": "Platform", "platform": "Platform",

View File

@ -37,6 +37,7 @@
"namePlaceholder": "支払い方法の名前を入力してください", "namePlaceholder": "支払い方法の名前を入力してください",
"nameRequired": "名前は必須です", "nameRequired": "名前は必須です",
"noFee": "手数料なし", "noFee": "手数料なし",
"notify_url": "通知URL",
"paymentManagement": "支払い管理", "paymentManagement": "支払い管理",
"percentFee": "パーセンテージ", "percentFee": "パーセンテージ",
"platform": "プラットフォーム", "platform": "プラットフォーム",

View File

@ -37,6 +37,7 @@
"namePlaceholder": "결제 수단 이름 입력", "namePlaceholder": "결제 수단 이름 입력",
"nameRequired": "이름은 필수입니다", "nameRequired": "이름은 필수입니다",
"noFee": "수수료 없음", "noFee": "수수료 없음",
"notify_url": "알림 URL",
"paymentManagement": "결제 관리", "paymentManagement": "결제 관리",
"percentFee": "백분율", "percentFee": "백분율",
"platform": "플랫폼", "platform": "플랫폼",

View File

@ -37,6 +37,7 @@
"namePlaceholder": "Skriv inn navn på betalingsmetode", "namePlaceholder": "Skriv inn navn på betalingsmetode",
"nameRequired": "Navn er påkrevd", "nameRequired": "Navn er påkrevd",
"noFee": "Ingen gebyr", "noFee": "Ingen gebyr",
"notify_url": "Varslings-URL",
"paymentManagement": "Betalingsadministrasjon", "paymentManagement": "Betalingsadministrasjon",
"percentFee": "Prosentandel", "percentFee": "Prosentandel",
"platform": "Plattform", "platform": "Plattform",

View File

@ -37,6 +37,7 @@
"namePlaceholder": "Wprowadź nazwę metody płatności", "namePlaceholder": "Wprowadź nazwę metody płatności",
"nameRequired": "Nazwa jest wymagana", "nameRequired": "Nazwa jest wymagana",
"noFee": "Brak opłaty", "noFee": "Brak opłaty",
"notify_url": "URL powiadomienia",
"paymentManagement": "Zarządzanie płatnościami", "paymentManagement": "Zarządzanie płatnościami",
"percentFee": "Procent", "percentFee": "Procent",
"platform": "Platforma", "platform": "Platforma",

View File

@ -37,6 +37,7 @@
"namePlaceholder": "Digite o nome do método de pagamento", "namePlaceholder": "Digite o nome do método de pagamento",
"nameRequired": "O nome é obrigatório", "nameRequired": "O nome é obrigatório",
"noFee": "Sem Taxa", "noFee": "Sem Taxa",
"notify_url": "URL de Notificação",
"paymentManagement": "Gerenciamento de Pagamento", "paymentManagement": "Gerenciamento de Pagamento",
"percentFee": "Porcentagem", "percentFee": "Porcentagem",
"platform": "Plataforma", "platform": "Plataforma",

View File

@ -37,6 +37,7 @@
"namePlaceholder": "Introdu numele metodei de plată", "namePlaceholder": "Introdu numele metodei de plată",
"nameRequired": "Numele este necesar", "nameRequired": "Numele este necesar",
"noFee": "Fără Taxă", "noFee": "Fără Taxă",
"notify_url": "URL de notificare",
"paymentManagement": "Gestionare Plăți", "paymentManagement": "Gestionare Plăți",
"percentFee": "Procentaj", "percentFee": "Procentaj",
"platform": "Platformă", "platform": "Platformă",

View File

@ -37,6 +37,7 @@
"namePlaceholder": "Введите название способа оплаты", "namePlaceholder": "Введите название способа оплаты",
"nameRequired": "Название обязательно", "nameRequired": "Название обязательно",
"noFee": "Без комиссии", "noFee": "Без комиссии",
"notify_url": "URL уведомления",
"paymentManagement": "Управление платежами", "paymentManagement": "Управление платежами",
"percentFee": "Процент", "percentFee": "Процент",
"platform": "Платформа", "platform": "Платформа",

View File

@ -37,6 +37,7 @@
"namePlaceholder": "กรอกชื่อวิธีการชำระเงิน", "namePlaceholder": "กรอกชื่อวิธีการชำระเงิน",
"nameRequired": "ชื่อเป็นสิ่งจำเป็น", "nameRequired": "ชื่อเป็นสิ่งจำเป็น",
"noFee": "ไม่มีค่าธรรมเนียม", "noFee": "ไม่มีค่าธรรมเนียม",
"notify_url": "URL การแจ้งเตือน",
"paymentManagement": "การจัดการการชำระเงิน", "paymentManagement": "การจัดการการชำระเงิน",
"percentFee": "เปอร์เซ็นต์", "percentFee": "เปอร์เซ็นต์",
"platform": "แพลตฟอร์ม", "platform": "แพลตฟอร์ม",

View File

@ -37,6 +37,7 @@
"namePlaceholder": "Ödeme yöntemi adını girin", "namePlaceholder": "Ödeme yöntemi adını girin",
"nameRequired": "İsim gereklidir", "nameRequired": "İsim gereklidir",
"noFee": "Ücret Yok", "noFee": "Ücret Yok",
"notify_url": "Bildirim URL'si",
"paymentManagement": "Ödeme Yönetimi", "paymentManagement": "Ödeme Yönetimi",
"percentFee": "Yüzde", "percentFee": "Yüzde",
"platform": "Platform", "platform": "Platform",

View File

@ -37,6 +37,7 @@
"namePlaceholder": "Введіть назву способу оплати", "namePlaceholder": "Введіть назву способу оплати",
"nameRequired": "Назва є обов'язковою", "nameRequired": "Назва є обов'язковою",
"noFee": "Без комісії", "noFee": "Без комісії",
"notify_url": "URL сповіщення",
"paymentManagement": "Управління платежами", "paymentManagement": "Управління платежами",
"percentFee": "Відсоток", "percentFee": "Відсоток",
"platform": "Платформа", "platform": "Платформа",

View File

@ -37,6 +37,7 @@
"namePlaceholder": "Nhập tên phương thức thanh toán", "namePlaceholder": "Nhập tên phương thức thanh toán",
"nameRequired": "Tên là bắt buộc", "nameRequired": "Tên là bắt buộc",
"noFee": "Không Có Phí", "noFee": "Không Có Phí",
"notify_url": "URL Thông Báo",
"paymentManagement": "Quản Lý Thanh Toán", "paymentManagement": "Quản Lý Thanh Toán",
"percentFee": "Phần Trăm", "percentFee": "Phần Trăm",
"platform": "Nền Tảng", "platform": "Nền Tảng",

View File

@ -37,6 +37,7 @@
"namePlaceholder": "输入支付方式名称", "namePlaceholder": "输入支付方式名称",
"nameRequired": "名称是必填项", "nameRequired": "名称是必填项",
"noFee": "无费用", "noFee": "无费用",
"notify_url": "通知网址",
"paymentManagement": "支付管理", "paymentManagement": "支付管理",
"percentFee": "百分比", "percentFee": "百分比",
"platform": "平台", "platform": "平台",

View File

@ -37,6 +37,7 @@
"namePlaceholder": "輸入付款方式名稱", "namePlaceholder": "輸入付款方式名稱",
"nameRequired": "名稱為必填", "nameRequired": "名稱為必填",
"noFee": "無費用", "noFee": "無費用",
"notify_url": "通知網址",
"paymentManagement": "付款管理", "paymentManagement": "付款管理",
"percentFee": "百分比", "percentFee": "百分比",
"platform": "平台", "platform": "平台",

View File

@ -1,5 +1,5 @@
// @ts-ignore // @ts-ignore
// API 更新时间: // API 更新时间:
// API 唯一标识: // API 唯一标识:
import * as ads from './ads'; import * as ads from './ads';

View File

@ -1,5 +1,5 @@
// @ts-ignore // @ts-ignore
// API 更新时间: // API 更新时间:
// API 唯一标识: // API 唯一标识:
import * as auth from './auth'; import * as auth from './auth';