feat: add Apple IAP (apple_iap) payment method support

Add apple_iap across all payment surfaces: method label, icon (Apple
logo SVG), admin settings tree (APPLE_IAP category), and all four
locale files (en, ru, fa, zh) with payment description + tree label.
This commit is contained in:
Fringg
2026-05-04 06:01:20 +03:00
parent afffab17d3
commit 58887138fc
7 changed files with 29 additions and 0 deletions

View File

@@ -295,6 +295,17 @@ export default function PaymentMethodIcon({
); );
} }
case 'apple_iap':
return (
<svg className={className} viewBox="0 0 40 40">
<circle cx="20" cy="20" r="20" fill="#000000" />
<path
d="M25.8 20.2c-.04-3.56 2.9-5.26 3.04-5.36-1.66-2.42-4.24-2.76-5.16-2.8-2.2-.22-4.28 1.3-5.4 1.3-1.12 0-2.84-1.26-4.68-1.22-2.4.04-4.62 1.4-5.86 3.56-2.5 4.34-.64 10.76 1.8 14.28 1.18 1.72 2.6 3.64 4.46 3.58 1.78-.08 2.46-1.16 4.62-1.16 2.16 0 2.78 1.16 4.68 1.12 1.92-.04 3.14-1.74 4.32-3.48 1.36-2 1.92-3.92 1.96-4.02-.04-.02-3.76-1.44-3.78-5.8zM22.24 10.2c.98-1.2 1.64-2.84 1.46-4.5-1.42.06-3.12.94-4.14 2.14-.9 1.06-1.7 2.74-1.48 4.36 1.58.12 3.18-.8 4.16-2z"
fill="#fff"
/>
</svg>
);
default: default:
return ( return (
<svg className={className} viewBox="0 0 40 40"> <svg className={className} viewBox="0 0 40 40">

View File

@@ -55,6 +55,7 @@ export const SETTINGS_TREE: SettingsTreeConfig = {
{ id: 'payments_paypear', categories: ['PAYPEAR'] }, { id: 'payments_paypear', categories: ['PAYPEAR'] },
{ id: 'payments_rollypay', categories: ['ROLLYPAY'] }, { id: 'payments_rollypay', categories: ['ROLLYPAY'] },
{ id: 'payments_aurapay', categories: ['AURAPAY'] }, { id: 'payments_aurapay', categories: ['AURAPAY'] },
{ id: 'payments_apple_iap', categories: ['APPLE_IAP'] },
], ],
}, },
{ {

View File

@@ -18,5 +18,6 @@ export const METHOD_LABELS: Record<string, string> = {
paypear: 'PayPear', paypear: 'PayPear',
rollypay: 'RollyPay', rollypay: 'RollyPay',
aurapay: 'AuraPay', aurapay: 'AuraPay',
apple_iap: 'Apple In-App Purchase',
manual: 'Ручное пополнение', manual: 'Ручное пополнение',
}; };

View File

@@ -659,6 +659,9 @@
}, },
"aurapay": { "aurapay": {
"description": "Pay via AuraPay" "description": "Pay via AuraPay"
},
"apple_iap": {
"description": "Pay via Apple In-App Purchase"
} }
}, },
"transactionHistory": "Transaction History", "transactionHistory": "Transaction History",
@@ -1971,6 +1974,7 @@
"payments_paypear": "PayPear", "payments_paypear": "PayPear",
"payments_rollypay": "RollyPay", "payments_rollypay": "RollyPay",
"payments_aurapay": "AuraPay", "payments_aurapay": "AuraPay",
"payments_apple_iap": "Apple IAP",
"subs_core": "Core", "subs_core": "Core",
"subs_trial": "Trial", "subs_trial": "Trial",
"subs_pricing": "Pricing", "subs_pricing": "Pricing",

View File

@@ -496,6 +496,9 @@
}, },
"severpay": { "severpay": {
"description": "پرداخت از طریق SeverPay" "description": "پرداخت از طریق SeverPay"
},
"apple_iap": {
"description": "پرداخت از طریق Apple In-App Purchase"
} }
}, },
"transactionHistory": "تاریخچه تراکنش‌ها", "transactionHistory": "تاریخچه تراکنش‌ها",
@@ -1621,6 +1624,7 @@
"payments_paypear": "PayPear", "payments_paypear": "PayPear",
"payments_rollypay": "RollyPay", "payments_rollypay": "RollyPay",
"payments_aurapay": "AuraPay", "payments_aurapay": "AuraPay",
"payments_apple_iap": "Apple IAP",
"subs_core": "هسته", "subs_core": "هسته",
"subs_trial": "آزمایشی", "subs_trial": "آزمایشی",
"subs_pricing": "قیمت‌گذاری", "subs_pricing": "قیمت‌گذاری",

View File

@@ -687,6 +687,9 @@
}, },
"aurapay": { "aurapay": {
"description": "Оплата через AuraPay" "description": "Оплата через AuraPay"
},
"apple_iap": {
"description": "Оплата через Apple In-App Purchase"
} }
}, },
"transactionHistory": "История операций", "transactionHistory": "История операций",
@@ -1987,6 +1990,7 @@
"payments_paypear": "PayPear", "payments_paypear": "PayPear",
"payments_rollypay": "RollyPay", "payments_rollypay": "RollyPay",
"payments_aurapay": "AuraPay", "payments_aurapay": "AuraPay",
"payments_apple_iap": "Apple IAP",
"subs_core": "Основные", "subs_core": "Основные",
"subs_trial": "Пробный период", "subs_trial": "Пробный период",
"subs_pricing": "Цены", "subs_pricing": "Цены",

View File

@@ -496,6 +496,9 @@
}, },
"severpay": { "severpay": {
"description": "通过SeverPay支付" "description": "通过SeverPay支付"
},
"apple_iap": {
"description": "通过Apple应用内购买支付"
} }
}, },
"transactionHistory": "交易记录", "transactionHistory": "交易记录",
@@ -1659,6 +1662,7 @@
"payments_paypear": "PayPear", "payments_paypear": "PayPear",
"payments_rollypay": "RollyPay", "payments_rollypay": "RollyPay",
"payments_aurapay": "AuraPay", "payments_aurapay": "AuraPay",
"payments_apple_iap": "Apple IAP",
"subs_core": "核心", "subs_core": "核心",
"subs_trial": "试用", "subs_trial": "试用",
"subs_pricing": "定价", "subs_pricing": "定价",