feat: read gift warning from status response, soften poll error state

- Add warning field to GiftPurchaseStatus type
- Read warning from status response with URL param fallback
- Show PollErrorState for all poll errors (softer UX for gateway payments)
This commit is contained in:
Fringg
2026-03-09 21:26:02 +03:00
parent 622172f038
commit 4322d58ff8
2 changed files with 9 additions and 5 deletions

View File

@@ -74,6 +74,7 @@ export interface GiftPurchaseStatus {
gift_message: string | null;
tariff_name: string | null;
period_days: number | null;
warning: string | null;
}
export interface PendingGift {