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 {