mirror of
https://github.com/chillpadclub/bedolaga-cabinet.git
synced 2026-07-28 09:33:46 +00:00
feat: add PayPear payment provider to cabinet frontend
- Payment method label and icon (amber gradient) - Admin settings tree entry for PAYPEAR category - Locale strings for ru, en, zh, fa
This commit is contained in:
@@ -235,6 +235,26 @@ export default function PaymentMethodIcon({
|
||||
);
|
||||
}
|
||||
|
||||
case 'paypear': {
|
||||
const paypearGradId = `${uid}-paypear`;
|
||||
return (
|
||||
<svg className={className} viewBox="0 0 40 40">
|
||||
<defs>
|
||||
<linearGradient id={paypearGradId} x1="0" y1="0" x2="1" y2="1">
|
||||
<stop offset="0%" stopColor="#f59e0b" />
|
||||
<stop offset="100%" stopColor="#d97706" />
|
||||
</linearGradient>
|
||||
</defs>
|
||||
<circle cx="20" cy="20" r="20" fill={`url(#${paypearGradId})`} />
|
||||
<g fill="#fff" fontFamily="Arial,sans-serif" fontWeight="700">
|
||||
<text x="20" y="26" textAnchor="middle" fontSize="14">
|
||||
PP
|
||||
</text>
|
||||
</g>
|
||||
</svg>
|
||||
);
|
||||
}
|
||||
|
||||
default:
|
||||
return (
|
||||
<svg className={className} viewBox="0 0 40 40">
|
||||
|
||||
@@ -52,6 +52,7 @@ export const SETTINGS_TREE: SettingsTreeConfig = {
|
||||
{ id: 'payments_wata', categories: ['WATA'] },
|
||||
{ id: 'payments_riopay', categories: ['RIOPAY'] },
|
||||
{ id: 'payments_severpay', categories: ['SEVERPAY'] },
|
||||
{ id: 'payments_paypear', categories: ['PAYPEAR'] },
|
||||
],
|
||||
},
|
||||
{
|
||||
|
||||
@@ -15,5 +15,6 @@ export const METHOD_LABELS: Record<string, string> = {
|
||||
kassa_ai: 'Kassa AI',
|
||||
riopay: 'RioPay',
|
||||
severpay: 'SeverPay',
|
||||
paypear: 'PayPear',
|
||||
manual: 'Ручное пополнение',
|
||||
};
|
||||
|
||||
@@ -1956,6 +1956,7 @@
|
||||
"payments_wata": "Wata",
|
||||
"payments_riopay": "RioPay",
|
||||
"payments_severpay": "SeverPay",
|
||||
"payments_paypear": "PayPear",
|
||||
"subs_core": "Core",
|
||||
"subs_trial": "Trial",
|
||||
"subs_pricing": "Pricing",
|
||||
|
||||
@@ -1617,6 +1617,7 @@
|
||||
"payments_wata": "Wata",
|
||||
"payments_riopay": "RioPay",
|
||||
"payments_severpay": "SeverPay",
|
||||
"payments_paypear": "PayPear",
|
||||
"subs_core": "هسته",
|
||||
"subs_trial": "آزمایشی",
|
||||
"subs_pricing": "قیمتگذاری",
|
||||
|
||||
@@ -1972,6 +1972,7 @@
|
||||
"payments_wata": "Wata",
|
||||
"payments_riopay": "RioPay",
|
||||
"payments_severpay": "SeverPay",
|
||||
"payments_paypear": "PayPear",
|
||||
"subs_core": "Основные",
|
||||
"subs_trial": "Пробный период",
|
||||
"subs_pricing": "Цены",
|
||||
|
||||
@@ -1655,6 +1655,7 @@
|
||||
"payments_wata": "Wata",
|
||||
"payments_riopay": "RioPay",
|
||||
"payments_severpay": "SeverPay",
|
||||
"payments_paypear": "PayPear",
|
||||
"subs_core": "核心",
|
||||
"subs_trial": "试用",
|
||||
"subs_pricing": "定价",
|
||||
|
||||
Reference in New Issue
Block a user