feat: add Etoplatezhi payment provider support

- Add etoplatezhi to METHOD_LABELS for stats charts
- Add PaymentMethodIcon case with green gradient SVG
- Add payments_etoplatezhi to admin settings tree
- Add i18n keys in all 4 locales (en, ru, zh, fa)
This commit is contained in:
Fringg
2026-05-04 07:18:14 +03:00
parent 7d29285ff6
commit 85a34b1947
7 changed files with 38 additions and 0 deletions

View File

@@ -295,6 +295,26 @@ export default function PaymentMethodIcon({
);
}
case 'etoplatezhi': {
const etoplatezhiGradId = `${uid}-etoplatezhi`;
return (
<svg className={className} viewBox="0 0 40 40">
<defs>
<linearGradient id={etoplatezhiGradId} x1="0" y1="0" x2="1" y2="1">
<stop offset="0%" stopColor="#10b981" />
<stop offset="100%" stopColor="#059669" />
</linearGradient>
</defs>
<circle cx="20" cy="20" r="20" fill={`url(#${etoplatezhiGradId})`} />
<g fill="#fff" fontFamily="Arial,sans-serif" fontWeight="700">
<text x="20" y="26" textAnchor="middle" fontSize="14">
EP
</text>
</g>
</svg>
);
}
case 'apple_iap':
return (
<svg className={className} viewBox="0 0 40 40">

View File

@@ -55,6 +55,7 @@ export const SETTINGS_TREE: SettingsTreeConfig = {
{ id: 'payments_paypear', categories: ['PAYPEAR'] },
{ id: 'payments_rollypay', categories: ['ROLLYPAY'] },
{ id: 'payments_aurapay', categories: ['AURAPAY'] },
{ id: 'payments_etoplatezhi', categories: ['ETOPLATEZHI'] },
{ id: 'payments_apple_iap', categories: ['APPLE_IAP'] },
],
},

View File

@@ -18,6 +18,7 @@ export const METHOD_LABELS: Record<string, string> = {
paypear: 'PayPear',
rollypay: 'RollyPay',
aurapay: 'AuraPay',
etoplatezhi: 'Etoplatezhi',
apple_iap: 'Apple In-App Purchase',
manual: 'Ручное пополнение',
};

View File

@@ -674,6 +674,9 @@
"aurapay": {
"description": "Pay via AuraPay"
},
"etoplatezhi": {
"description": "Pay via Etoplatezhi"
},
"apple_iap": {
"description": "Pay via Apple In-App Purchase"
}
@@ -1998,6 +2001,7 @@
"payments_paypear": "PayPear",
"payments_rollypay": "RollyPay",
"payments_aurapay": "AuraPay",
"payments_etoplatezhi": "Etoplatezhi",
"payments_apple_iap": "Apple IAP",
"subs_core": "Core",
"subs_trial": "Trial",

View File

@@ -511,6 +511,9 @@
"severpay": {
"description": "پرداخت از طریق SeverPay"
},
"etoplatezhi": {
"description": "پرداخت از طریق Etoplatezhi"
},
"apple_iap": {
"description": "پرداخت از طریق Apple In-App Purchase"
}
@@ -1638,6 +1641,7 @@
"payments_paypear": "PayPear",
"payments_rollypay": "RollyPay",
"payments_aurapay": "AuraPay",
"payments_etoplatezhi": "Etoplatezhi",
"payments_apple_iap": "Apple IAP",
"subs_core": "هسته",
"subs_trial": "آزمایشی",

View File

@@ -702,6 +702,9 @@
"aurapay": {
"description": "Оплата через AuraPay"
},
"etoplatezhi": {
"description": "Оплата через Etoplatezhi"
},
"apple_iap": {
"description": "Оплата через Apple In-App Purchase"
}
@@ -2014,6 +2017,7 @@
"payments_paypear": "PayPear",
"payments_rollypay": "RollyPay",
"payments_aurapay": "AuraPay",
"payments_etoplatezhi": "Etoplatezhi",
"payments_apple_iap": "Apple IAP",
"subs_core": "Основные",
"subs_trial": "Пробный период",

View File

@@ -511,6 +511,9 @@
"severpay": {
"description": "通过SeverPay支付"
},
"etoplatezhi": {
"description": "通过Etoplatezhi支付"
},
"apple_iap": {
"description": "通过Apple应用内购买支付"
}
@@ -1676,6 +1679,7 @@
"payments_paypear": "PayPear",
"payments_rollypay": "RollyPay",
"payments_aurapay": "AuraPay",
"payments_etoplatezhi": "Etoplatezhi",
"payments_apple_iap": "Apple IAP",
"subs_core": "核心",
"subs_trial": "试用",