fix: inline Stars confirmation and unified payment type display

- Replace confirm dialog with inline UI panel to avoid browser popup
  blockers — pay button click is a direct user gesture
- Pre-open browser window synchronously on pay click for fallback
- Unify payment type display: show same styled panel whether one or
  both methods are enabled (single method = full-width button)
- Remove getCostSubtitle text, add payStars translation key (ru, en,
  zh, fa)
This commit is contained in:
c0mrade
2026-02-04 16:53:58 +03:00
parent e6f8ae6ab0
commit 8068f84724
5 changed files with 92 additions and 75 deletions

View File

@@ -604,8 +604,8 @@
"starsPaymentFailed": "支付失败。请重试。",
"starsPaymentRedirected": "将打开Telegram进行支付。支付后请刷新页面。",
"starsNotAvailable": "星星支付暂不可用。请联系客服。",
"confirmStarsTitle": "星星支付",
"confirmStarsPayment": "您将被重定向到Telegram进行一次转盘支付。继续吗",
"confirmStarsPayment": "您将被重定向到Telegram进行一次转盘支付",
"payStars": "支付 {{count}} ⭐",
"noHistory": "暂无抽奖记录",
"banner": {
"title": "试试运气!",