fix(tui): change the stripe abandoned payment polling duration from 2 to 10 mins

This commit is contained in:
2026-05-23 13:15:15 +02:00
parent 491f70e935
commit a4c446ba3c
2 changed files with 5 additions and 2 deletions

View File

@@ -946,7 +946,7 @@ func (m Model) collectCardCmd() tea.Cmd {
}
const ordersPollInterval = 10 * time.Second
const cardPollTimeout = 2 * time.Minute
const cardPollTimeout = 10 * time.Minute
type OrdersPollTickMsg struct{}

View File

@@ -374,7 +374,10 @@ func (m Model) renderPaymentHttpsView() string {
accentStyle := m.theme.TextHighlight()
if m.payment.collectTimeOut {
return m.theme.TextError().Bold(true).Render("payment link timed out") + "\n\n" + baseStyle.Render("no card saved after 2 minutes.") + "\n" + baseStyle.Render("press ") + accentStyle.Render("esc") + baseStyle.Render(" to go back and try again")
minutes := int(cardPollTimeout / time.Minute)
return m.theme.TextError().Bold(true).Render("payment link timed out") + "\n\n" +
baseStyle.Render(fmt.Sprintf("no card saved after %d minutes.", minutes)) + "\n" +
baseStyle.Render("press ") + accentStyle.Render("esc") + baseStyle.Render(" to go back and try again")
}
if m.payment.collectURL == nil {