mirror of
https://github.com/chillpadclub/bedolaga-cabinet.git
synced 2026-07-28 09:33:46 +00:00
feat(gift): transferable gift claim — buyer share link + recipient claim page
Pairs with the bot's unified claimable-gift model. A landing gift now lands on the buyer's success page as PAID/claimable (deferred) instead of being delivered to a phantom recipient, so the buyer gets a transferable link to forward and the recipient claims it themselves — guaranteeing delivery regardless of channel or whether they pre-exist. - api/landings.ts: PurchaseStatus gains is_claimable/claim_url/bot_claim_link; add GiftClaimResult + getGiftClaim()/claimGift(). - PurchaseSuccess.tsx: GiftLinkShareState — buyer sees the claim link + Telegram link + copy-message when a gift is PAID/claimable; stop polling for that state (it stays PAID until claimed) instead of spinning forever. - GiftClaim.tsx (new) + /buy/gift/:token route: public recipient claim page with a Telegram arm (GIFT_ deep link) and a web/email arm (binds + one-click login), polling while the payment settles, idempotent "already claimed" + 404 states. - i18n: landing.giftClaim.* / landing.giftLink.* in ru/en/zh/fa.
This commit is contained in:
@@ -5389,6 +5389,34 @@
|
||||
"merging": "Объединение..."
|
||||
},
|
||||
"landing": {
|
||||
"giftClaim": {
|
||||
"title": "Вам подарок!",
|
||||
"error": "Не удалось активировать подарок.",
|
||||
"notFoundTitle": "Подарок не найден",
|
||||
"notFoundDesc": "Ссылка на подарок недействительна или больше недоступна.",
|
||||
"alreadyTitle": "Подарок уже активирован",
|
||||
"alreadyDesc": "Этот подарок уже забрали.",
|
||||
"successTitle": "Подарок активирован!",
|
||||
"connectDesc": "Используйте эту ссылку для подключения:",
|
||||
"copyLink": "Скопировать ссылку",
|
||||
"pendingTitle": "Почти готово…",
|
||||
"pendingDesc": "Оплата ещё подтверждается. Страница обновится автоматически.",
|
||||
"replaceWarning": "У вас уже есть подписка — активация подарка заменит её.",
|
||||
"activateTelegram": "Активировать в Telegram",
|
||||
"activateWeb": "Активировать по почте",
|
||||
"emailLabel": "Ваш email",
|
||||
"claimNow": "Получить подарок"
|
||||
},
|
||||
"giftLink": {
|
||||
"shareText": "Дарю вам подписку! Активируйте здесь:",
|
||||
"viaTelegram": "Telegram:",
|
||||
"title": "Подарок готов!",
|
||||
"subtitle": "Отправьте эту ссылку тому, кому предназначен подарок — он активирует его сам.",
|
||||
"linkLabel": "Ссылка на подарок",
|
||||
"telegramLabel": "Ссылка для Telegram",
|
||||
"alsoSent": "Мы также отправили её на {{contact}}.",
|
||||
"copyMessage": "Скопировать сообщение"
|
||||
},
|
||||
"notFound": "Страница не найдена",
|
||||
"forMe": "Для себя",
|
||||
"asGift": "В подарок",
|
||||
|
||||
Reference in New Issue
Block a user