From 246fafdbfc1db6384d1626ae09e04431c72f61e2 Mon Sep 17 00:00:00 2001 From: Fringg Date: Wed, 18 Mar 2026 03:49:36 +0300 Subject: [PATCH] =?UTF-8?q?feat:=20=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B0=20=D0=BF=D0=BE=D0=B4=D0=B4=D0=B5=D1=80=D0=B6?= =?UTF-8?q?=D0=BA=D0=B0=20SeverPay=20=D0=B2=20=D0=BA=D0=B0=D0=B1=D0=B8?= =?UTF-8?q?=D0=BD=D0=B5=D1=82=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Иконка SeverPay (синий градиент, SP) - Лейбл в paymentMethods - Статус decline в FAILED_STATUSES - Локализация (ru, en, fa, zh) --- src/components/PaymentMethodIcon.tsx | 20 ++++++++++++++++++++ src/constants/paymentMethods.ts | 1 + src/locales/en.json | 9 +++++++++ src/locales/fa.json | 3 +++ src/locales/ru.json | 9 +++++++++ src/locales/zh.json | 3 +++ src/utils/paymentStatus.ts | 1 + 7 files changed, 46 insertions(+) diff --git a/src/components/PaymentMethodIcon.tsx b/src/components/PaymentMethodIcon.tsx index 9609e4c..833baab 100644 --- a/src/components/PaymentMethodIcon.tsx +++ b/src/components/PaymentMethodIcon.tsx @@ -215,6 +215,26 @@ export default function PaymentMethodIcon({ ); } + case 'severpay': { + const severpayGradId = `${uid}-severpay`; + return ( + + + + + + + + + + + SP + + + + ); + } + default: return ( diff --git a/src/constants/paymentMethods.ts b/src/constants/paymentMethods.ts index 52b6477..1589a81 100644 --- a/src/constants/paymentMethods.ts +++ b/src/constants/paymentMethods.ts @@ -14,4 +14,5 @@ export const METHOD_LABELS: Record = { cloudpayments: 'CloudPayments', kassa_ai: 'Kassa AI', riopay: 'RioPay', + severpay: 'SeverPay', }; diff --git a/src/locales/en.json b/src/locales/en.json index 3307e52..3056aef 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -634,6 +634,15 @@ }, "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", diff --git a/src/locales/fa.json b/src/locales/fa.json index 07b6fba..494059b 100644 --- a/src/locales/fa.json +++ b/src/locales/fa.json @@ -487,6 +487,9 @@ }, "tribute": { "description": "پرداخت با کارت بانکی از طریق Tribute" + }, + "severpay": { + "description": "پرداخت از طریق SeverPay" } }, "transactionHistory": "تاریخچه تراکنش‌ها", diff --git a/src/locales/ru.json b/src/locales/ru.json index db4916b..1046358 100644 --- a/src/locales/ru.json +++ b/src/locales/ru.json @@ -662,6 +662,15 @@ }, "tribute": { "description": "Оплата банковской картой через Tribute" + }, + "severpay": { + "description": "Оплата через SeverPay" + }, + "riopay": { + "description": "Оплата через RioPay" + }, + "kassa_ai": { + "description": "Оплата через Kassa AI" } }, "transactionHistory": "История операций", diff --git a/src/locales/zh.json b/src/locales/zh.json index a11c045..5301b10 100644 --- a/src/locales/zh.json +++ b/src/locales/zh.json @@ -487,6 +487,9 @@ }, "tribute": { "description": "通过Tribute银行卡支付" + }, + "severpay": { + "description": "通过SeverPay支付" } }, "transactionHistory": "交易记录", diff --git a/src/utils/paymentStatus.ts b/src/utils/paymentStatus.ts index 7f360f5..4c5c697 100644 --- a/src/utils/paymentStatus.ts +++ b/src/utils/paymentStatus.ts @@ -20,6 +20,7 @@ export const FAILED_STATUSES = new Set([ 'cancel', 'system_fail', 'refund_paid', + 'decline', ]); export function isPaidStatus(status: string): boolean {