feat: add RollyPay payment provider to cabinet frontend

- Payment method label and icon (green gradient, RP)
- Admin settings tree entry for ROLLYPAY category
- Locale strings and descriptions for ru, en, zh, fa
This commit is contained in:
Fringg
2026-04-16 05:55:21 +03:00
parent 5cbf29a1e8
commit 770a5803d6
7 changed files with 32 additions and 0 deletions

View File

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

View File

@@ -53,6 +53,7 @@ export const SETTINGS_TREE: SettingsTreeConfig = {
{ id: 'payments_riopay', categories: ['RIOPAY'] },
{ id: 'payments_severpay', categories: ['SEVERPAY'] },
{ id: 'payments_paypear', categories: ['PAYPEAR'] },
{ id: 'payments_rollypay', categories: ['ROLLYPAY'] },
],
},
{

View File

@@ -16,5 +16,6 @@ export const METHOD_LABELS: Record<string, string> = {
riopay: 'RioPay',
severpay: 'SeverPay',
paypear: 'PayPear',
rollypay: 'RollyPay',
manual: 'Ручное пополнение',
};

View File

@@ -652,6 +652,9 @@
},
"paypear": {
"description": "Pay via PayPear"
},
"rollypay": {
"description": "Pay via RollyPay (SBP)"
}
},
"transactionHistory": "Transaction History",
@@ -1960,6 +1963,7 @@
"payments_riopay": "RioPay",
"payments_severpay": "SeverPay",
"payments_paypear": "PayPear",
"payments_rollypay": "RollyPay",
"subs_core": "Core",
"subs_trial": "Trial",
"subs_pricing": "Pricing",

View File

@@ -1618,6 +1618,7 @@
"payments_riopay": "RioPay",
"payments_severpay": "SeverPay",
"payments_paypear": "PayPear",
"payments_rollypay": "RollyPay",
"subs_core": "هسته",
"subs_trial": "آزمایشی",
"subs_pricing": "قیمت‌گذاری",

View File

@@ -680,6 +680,9 @@
},
"paypear": {
"description": "Оплата через PayPear"
},
"rollypay": {
"description": "Оплата через RollyPay (СБП)"
}
},
"transactionHistory": "История операций",
@@ -1976,6 +1979,7 @@
"payments_riopay": "RioPay",
"payments_severpay": "SeverPay",
"payments_paypear": "PayPear",
"payments_rollypay": "RollyPay",
"subs_core": "Основные",
"subs_trial": "Пробный период",
"subs_pricing": "Цены",

View File

@@ -1656,6 +1656,7 @@
"payments_riopay": "RioPay",
"payments_severpay": "SeverPay",
"payments_paypear": "PayPear",
"payments_rollypay": "RollyPay",
"subs_core": "核心",
"subs_trial": "试用",
"subs_pricing": "定价",