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

@@ -714,8 +714,8 @@
"starsPaymentFailed": "Payment failed. Please try again.",
"starsPaymentRedirected": "Telegram will open for payment. Refresh the page after payment.",
"starsNotAvailable": "Star payments are currently unavailable. Contact support.",
"confirmStarsTitle": "Star payment",
"confirmStarsPayment": "You will be redirected to Telegram to pay for one wheel spin. Continue?",
"confirmStarsPayment": "You will be redirected to Telegram to pay for one wheel spin.",
"payStars": "Pay {{count}} ⭐",
"youWon": "You won",
"noPrize": "No luck this time...",
"noHistory": "No spin history yet",