Skip to content

Press enter to open verification URL in browser on spend request step-up failure - #227

Merged
sylwang-stripe merged 1 commit into
stripe:mainfrom
sylwang-stripe:press-enter-to-open-verification-urls
Aug 6, 2026
Merged

Press enter to open verification URL in browser on spend request step-up failure#227
sylwang-stripe merged 1 commit into
stripe:mainfrom
sylwang-stripe:press-enter-to-open-verification-urls

Conversation

@sylwang-stripe

@sylwang-stripe sylwang-stripe commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

When spend-request create or spend-request request-approval fails with a step-up verification error (e.g. additional_verification_required, identity_verification_failed), previously, the URL was shown as a static error message and the CLI exited immediately. Now:

  • The CLI displays the verification_url (or support_url) in a highlighted box with a "Press Enter to open in browser" prompt
  • Pressing Enter opens the URL in the default browser and exits after a short delay
  • If the user doesn't press Enter, the CLI auto-exits after a 30-second countdown
  • The original error message is shown in both the prompt and post-open states

Before pressing enter to open the url:
Screenshot 2026-08-05 at 1 46 30 PM

After pressing enter to have opened the url in the browser:
Screenshot 2026-08-05 at 1 48 02 PM

No user action and exit in 30s:
Screenshot 2026-08-05 at 1 52 33 PM

@sylwang-stripe
sylwang-stripe requested a review from a team as a code owner August 5, 2026 17:36
@sylwang-stripe
sylwang-stripe force-pushed the press-enter-to-open-verification-urls branch from 9260132 to ef58613 Compare August 5, 2026 17:41
@sylwang-stripe
sylwang-stripe force-pushed the press-enter-to-open-verification-urls branch from ef58613 to 73accdf Compare August 5, 2026 17:49
@sylwang-stripe
sylwang-stripe merged commit f89efad into stripe:main Aug 6, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants