mirror of
https://github.com/chillpadclub/bedolaga-cabinet.git
synced 2026-07-28 09:33:46 +00:00
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:
@@ -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">
|
||||
|
||||
@@ -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'] },
|
||||
],
|
||||
},
|
||||
{
|
||||
|
||||
@@ -16,5 +16,6 @@ export const METHOD_LABELS: Record<string, string> = {
|
||||
riopay: 'RioPay',
|
||||
severpay: 'SeverPay',
|
||||
paypear: 'PayPear',
|
||||
rollypay: 'RollyPay',
|
||||
manual: 'Ручное пополнение',
|
||||
};
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -1618,6 +1618,7 @@
|
||||
"payments_riopay": "RioPay",
|
||||
"payments_severpay": "SeverPay",
|
||||
"payments_paypear": "PayPear",
|
||||
"payments_rollypay": "RollyPay",
|
||||
"subs_core": "هسته",
|
||||
"subs_trial": "آزمایشی",
|
||||
"subs_pricing": "قیمتگذاری",
|
||||
|
||||
@@ -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": "Цены",
|
||||
|
||||
@@ -1656,6 +1656,7 @@
|
||||
"payments_riopay": "RioPay",
|
||||
"payments_severpay": "SeverPay",
|
||||
"payments_paypear": "PayPear",
|
||||
"payments_rollypay": "RollyPay",
|
||||
"subs_core": "核心",
|
||||
"subs_trial": "试用",
|
||||
"subs_pricing": "定价",
|
||||
|
||||
Reference in New Issue
Block a user