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'] },
],
},
{