feat: add Antilopay payment provider support

- Add antilopay to METHOD_LABELS for stats charts
- Add PaymentMethodIcon case with amber gradient SVG
- Add payments_antilopay 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:44:52 +03:00
parent 85a34b1947
commit 7d940091fa
7 changed files with 38 additions and 0 deletions

View File

@@ -315,6 +315,26 @@ export default function PaymentMethodIcon({
);
}
case 'antilopay': {
const antilopayGradId = `${uid}-antilopay`;
return (
<svg className={className} viewBox="0 0 40 40">
<defs>
<linearGradient id={antilopayGradId} 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(#${antilopayGradId})`} />
<g fill="#fff" fontFamily="Arial,sans-serif" fontWeight="700">
<text x="20" y="26" textAnchor="middle" fontSize="14">
AL
</text>
</g>
</svg>
);
}
case 'apple_iap':
return (
<svg className={className} viewBox="0 0 40 40">

View File

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

View File

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

View File

@@ -677,6 +677,9 @@
"etoplatezhi": {
"description": "Pay via Etoplatezhi"
},
"antilopay": {
"description": "Pay via Antilopay"
},
"apple_iap": {
"description": "Pay via Apple In-App Purchase"
}
@@ -2002,6 +2005,7 @@
"payments_rollypay": "RollyPay",
"payments_aurapay": "AuraPay",
"payments_etoplatezhi": "Etoplatezhi",
"payments_antilopay": "Antilopay",
"payments_apple_iap": "Apple IAP",
"subs_core": "Core",
"subs_trial": "Trial",

View File

@@ -514,6 +514,9 @@
"etoplatezhi": {
"description": "پرداخت از طریق Etoplatezhi"
},
"antilopay": {
"description": "پرداخت از طریق Antilopay"
},
"apple_iap": {
"description": "پرداخت از طریق Apple In-App Purchase"
}
@@ -1642,6 +1645,7 @@
"payments_rollypay": "RollyPay",
"payments_aurapay": "AuraPay",
"payments_etoplatezhi": "Etoplatezhi",
"payments_antilopay": "Antilopay",
"payments_apple_iap": "Apple IAP",
"subs_core": "هسته",
"subs_trial": "آزمایشی",

View File

@@ -705,6 +705,9 @@
"etoplatezhi": {
"description": "Оплата через Etoplatezhi"
},
"antilopay": {
"description": "Оплата через Antilopay"
},
"apple_iap": {
"description": "Оплата через Apple In-App Purchase"
}
@@ -2018,6 +2021,7 @@
"payments_rollypay": "RollyPay",
"payments_aurapay": "AuraPay",
"payments_etoplatezhi": "Etoplatezhi",
"payments_antilopay": "Antilopay",
"payments_apple_iap": "Apple IAP",
"subs_core": "Основные",
"subs_trial": "Пробный период",

View File

@@ -514,6 +514,9 @@
"etoplatezhi": {
"description": "通过Etoplatezhi支付"
},
"antilopay": {
"description": "通过Antilopay支付"
},
"apple_iap": {
"description": "通过Apple应用内购买支付"
}
@@ -1680,6 +1683,7 @@
"payments_rollypay": "RollyPay",
"payments_aurapay": "AuraPay",
"payments_etoplatezhi": "Etoplatezhi",
"payments_antilopay": "Antilopay",
"payments_apple_iap": "Apple IAP",
"subs_core": "核心",
"subs_trial": "试用",