mirror of
https://github.com/chillpadclub/bedolaga-cabinet.git
synced 2026-07-30 02:23:47 +00:00
feat: добавлена поддержка SeverPay в кабинете
- Иконка SeverPay (синий градиент, SP) - Лейбл в paymentMethods - Статус decline в FAILED_STATUSES - Локализация (ru, en, fa, zh)
This commit is contained in:
@@ -215,6 +215,26 @@ export default function PaymentMethodIcon({
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
case 'severpay': {
|
||||||
|
const severpayGradId = `${uid}-severpay`;
|
||||||
|
return (
|
||||||
|
<svg className={className} viewBox="0 0 40 40">
|
||||||
|
<defs>
|
||||||
|
<linearGradient id={severpayGradId} x1="0" y1="0" x2="1" y2="1">
|
||||||
|
<stop offset="0%" stopColor="#1e40af" />
|
||||||
|
<stop offset="100%" stopColor="#1d4ed8" />
|
||||||
|
</linearGradient>
|
||||||
|
</defs>
|
||||||
|
<circle cx="20" cy="20" r="20" fill={`url(#${severpayGradId})`} />
|
||||||
|
<g fill="#fff" fontFamily="Arial,sans-serif" fontWeight="700">
|
||||||
|
<text x="20" y="26" textAnchor="middle" fontSize="14">
|
||||||
|
SP
|
||||||
|
</text>
|
||||||
|
</g>
|
||||||
|
</svg>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
default:
|
default:
|
||||||
return (
|
return (
|
||||||
<svg className={className} viewBox="0 0 40 40">
|
<svg className={className} viewBox="0 0 40 40">
|
||||||
|
|||||||
@@ -14,4 +14,5 @@ export const METHOD_LABELS: Record<string, string> = {
|
|||||||
cloudpayments: 'CloudPayments',
|
cloudpayments: 'CloudPayments',
|
||||||
kassa_ai: 'Kassa AI',
|
kassa_ai: 'Kassa AI',
|
||||||
riopay: 'RioPay',
|
riopay: 'RioPay',
|
||||||
|
severpay: 'SeverPay',
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -634,6 +634,15 @@
|
|||||||
},
|
},
|
||||||
"tribute": {
|
"tribute": {
|
||||||
"description": "Pay with bank card via Tribute"
|
"description": "Pay with bank card via Tribute"
|
||||||
|
},
|
||||||
|
"severpay": {
|
||||||
|
"description": "Pay via SeverPay"
|
||||||
|
},
|
||||||
|
"riopay": {
|
||||||
|
"description": "Pay via RioPay"
|
||||||
|
},
|
||||||
|
"kassa_ai": {
|
||||||
|
"description": "Pay via Kassa AI"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"transactionHistory": "Transaction History",
|
"transactionHistory": "Transaction History",
|
||||||
|
|||||||
@@ -487,6 +487,9 @@
|
|||||||
},
|
},
|
||||||
"tribute": {
|
"tribute": {
|
||||||
"description": "پرداخت با کارت بانکی از طریق Tribute"
|
"description": "پرداخت با کارت بانکی از طریق Tribute"
|
||||||
|
},
|
||||||
|
"severpay": {
|
||||||
|
"description": "پرداخت از طریق SeverPay"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"transactionHistory": "تاریخچه تراکنشها",
|
"transactionHistory": "تاریخچه تراکنشها",
|
||||||
|
|||||||
@@ -662,6 +662,15 @@
|
|||||||
},
|
},
|
||||||
"tribute": {
|
"tribute": {
|
||||||
"description": "Оплата банковской картой через Tribute"
|
"description": "Оплата банковской картой через Tribute"
|
||||||
|
},
|
||||||
|
"severpay": {
|
||||||
|
"description": "Оплата через SeverPay"
|
||||||
|
},
|
||||||
|
"riopay": {
|
||||||
|
"description": "Оплата через RioPay"
|
||||||
|
},
|
||||||
|
"kassa_ai": {
|
||||||
|
"description": "Оплата через Kassa AI"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"transactionHistory": "История операций",
|
"transactionHistory": "История операций",
|
||||||
|
|||||||
@@ -487,6 +487,9 @@
|
|||||||
},
|
},
|
||||||
"tribute": {
|
"tribute": {
|
||||||
"description": "通过Tribute银行卡支付"
|
"description": "通过Tribute银行卡支付"
|
||||||
|
},
|
||||||
|
"severpay": {
|
||||||
|
"description": "通过SeverPay支付"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"transactionHistory": "交易记录",
|
"transactionHistory": "交易记录",
|
||||||
|
|||||||
@@ -20,6 +20,7 @@ export const FAILED_STATUSES = new Set([
|
|||||||
'cancel',
|
'cancel',
|
||||||
'system_fail',
|
'system_fail',
|
||||||
'refund_paid',
|
'refund_paid',
|
||||||
|
'decline',
|
||||||
]);
|
]);
|
||||||
|
|
||||||
export function isPaidStatus(status: string): boolean {
|
export function isPaidStatus(status: string): boolean {
|
||||||
|
|||||||
Reference in New Issue
Block a user