c0mrade
ce5737fcbc
fix(payments): open_url_direct payment URL opens externally in Telegram ( #654272 )
...
The reported #654272 case ('функция немедленного открытия ссылки', reproduced on RollyPay AND YooKassa, fine on desktop) is the open_url_direct flow — not the connection deep-link opener fixed in 325e221 .
When a payment method has open_url_direct, the cabinet did window.location.href = payment_url INSIDE the Telegram in-app WebView. SBP/RollyPay/YooKassa pages then hand off to a bank app via a custom scheme, which the WebView can't open: Android shows net::ERR_UNKNOWN_URL_SCHEME, iOS opens nothing ('приложение не определяется'); link generation logs fine. Desktop works because it's a real browser.
Add openPaymentUrl(): in Telegram open via openLink (external browser — the OS hands off to the bank app, return_url brings the user back); on web keep same-tab navigation (no popup blocker). Applied to TopUpAmount (top-up) and GiftSubscription (gift purchase). QuickPurchase is a web landing page (no platform abstraction) and is unaffected.
2026-06-08 14:21:45 +03:00
..
2026-06-06 21:27:57 +03:00
2026-06-04 23:32:59 +03:00
2026-06-01 13:31:12 +03:00
2026-06-02 16:17:10 +03:00
2026-06-06 21:27:57 +03:00
2026-05-31 18:50:50 +03:00
2026-06-06 21:27:57 +03:00
2026-05-31 18:50:50 +03:00
2026-05-31 19:24:29 +03:00
2026-05-31 23:37:12 +03:00
2026-05-26 11:32:32 +03:00
2026-06-06 21:27:57 +03:00
2026-05-31 23:37:12 +03:00
2026-05-31 18:50:50 +03:00
2026-06-06 21:27:57 +03:00
2026-05-25 23:16:07 +03:00
2026-05-31 18:50:50 +03:00
2026-05-31 18:50:50 +03:00
2026-05-31 18:50:50 +03:00
2026-05-31 19:24:29 +03:00
2026-05-31 18:50:50 +03:00
2026-06-03 15:16:17 +03:00
2026-05-31 18:50:50 +03:00
2026-05-31 18:50:50 +03:00
2026-05-31 18:50:50 +03:00
2026-06-04 23:32:59 +03:00
2026-02-17 10:28:32 +03:00
2026-06-06 21:27:57 +03:00
2026-02-17 10:28:32 +03:00
2026-06-06 21:27:57 +03:00
2026-05-31 18:50:50 +03:00
2026-05-31 18:50:50 +03:00
2026-05-31 18:50:50 +03:00
2026-06-06 21:27:57 +03:00
2026-05-31 18:50:50 +03:00
2026-05-31 18:50:50 +03:00
2026-06-06 21:27:57 +03:00
2026-05-31 23:37:12 +03:00
2026-06-08 00:23:31 +03:00
2026-06-06 21:27:57 +03:00
2026-06-06 21:27:57 +03:00
2026-05-31 18:50:50 +03:00
2026-06-06 21:27:57 +03:00
2026-05-31 18:50:50 +03:00
2026-06-04 23:32:59 +03:00
2026-05-26 10:45:29 +03:00
2026-06-06 21:27:57 +03:00
2026-06-06 21:27:57 +03:00
2026-05-31 18:50:50 +03:00
2026-05-31 18:50:50 +03:00
2026-06-06 21:27:57 +03:00
2026-06-02 19:38:38 +03:00
2026-05-26 15:24:01 +03:00
2026-05-31 18:50:50 +03:00
2026-05-31 18:50:50 +03:00
2026-06-04 23:32:59 +03:00
2026-05-31 23:37:12 +03:00
2026-06-06 21:27:57 +03:00
2026-05-31 18:50:50 +03:00
2026-05-31 18:50:50 +03:00
2026-05-31 18:50:50 +03:00
2026-05-31 18:50:50 +03:00
2026-06-06 21:27:57 +03:00
2026-06-04 22:41:55 +03:00
2026-05-31 23:37:12 +03:00
2026-02-17 10:28:32 +03:00
2026-06-06 21:27:57 +03:00
2026-05-31 23:37:12 +03:00
2026-06-08 00:23:31 +03:00
2026-06-04 23:17:57 +03:00
2026-06-08 13:11:19 +03:00
2026-03-25 11:47:31 +03:00
2026-06-04 23:03:42 +03:00
2026-06-03 11:17:00 +03:00
2026-06-08 13:11:19 +03:00
2026-06-03 14:34:19 +03:00
2026-06-03 14:34:19 +03:00
2026-06-08 14:21:45 +03:00
2026-05-31 19:24:29 +03:00
2026-05-31 19:24:29 +03:00
2026-05-25 23:16:07 +03:00
2026-05-31 23:37:12 +03:00
2026-03-04 16:05:24 +03:00
2026-05-31 18:50:50 +03:00
2026-05-31 23:37:12 +03:00
2026-06-04 23:03:42 +03:00
2026-05-31 23:37:12 +03:00
2026-06-04 23:32:59 +03:00
2026-06-03 12:33:10 +03:00
2026-06-06 21:27:57 +03:00
2026-05-26 15:24:01 +03:00
2026-05-26 15:24:01 +03:00
2026-05-26 11:09:28 +03:00
2026-05-31 23:37:12 +03:00
2026-03-10 15:58:02 +05:00
2026-06-01 13:31:12 +03:00
2026-05-31 23:37:12 +03:00
2026-06-03 11:07:45 +03:00
2026-05-31 23:37:12 +03:00
2026-05-26 21:52:56 +03:00
2026-05-31 23:37:12 +03:00
2026-06-08 14:21:45 +03:00
2026-02-07 03:36:25 +03:00
2026-03-23 18:57:05 +03:00
2026-05-26 21:52:56 +03:00
2026-06-04 23:32:59 +03:00