Skip to content

fix(clerk-js): Better Stripe Elements error handling #6074

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 6, 2025

Conversation

aeliox
Copy link
Contributor

@aeliox aeliox commented Jun 5, 2025

Description

Fixes the error handling of Stripe Elements, such that a declined card internally errors (within the Stripe element) and doesn't cause a SetupIntent revalidation.

Screenshot 2025-06-05 at 3 35 04 PM

Checklist

  • pnpm test runs as expected.
  • pnpm build runs as expected.
  • (If applicable) JSDoc comments have been added or updated for any package exports
  • (If applicable) Documentation has been updated

Type of change

  • 🐛 Bug fix
  • 🌟 New feature
  • 🔨 Breaking change
  • 📖 Refactoring / dependency upgrade / documentation
  • other:

Copy link

changeset-bot bot commented Jun 5, 2025

🦋 Changeset detected

Latest commit: 46054bb

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
@clerk/clerk-js Patch
@clerk/chrome-extension Patch
@clerk/clerk-expo Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

vercel bot commented Jun 5, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
clerk-js-sandbox ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 5, 2025 10:35pm

Copy link

pkg-pr-new bot commented Jun 5, 2025

Open in StackBlitz

@clerk/agent-toolkit

npm i https://pkg.pr.new/@clerk/agent-toolkit@6074

@clerk/astro

npm i https://pkg.pr.new/@clerk/astro@6074

@clerk/backend

npm i https://pkg.pr.new/@clerk/backend@6074

@clerk/chrome-extension

npm i https://pkg.pr.new/@clerk/chrome-extension@6074

@clerk/clerk-js

npm i https://pkg.pr.new/@clerk/clerk-js@6074

@clerk/dev-cli

npm i https://pkg.pr.new/@clerk/dev-cli@6074

@clerk/elements

npm i https://pkg.pr.new/@clerk/elements@6074

@clerk/clerk-expo

npm i https://pkg.pr.new/@clerk/clerk-expo@6074

@clerk/expo-passkeys

npm i https://pkg.pr.new/@clerk/expo-passkeys@6074

@clerk/express

npm i https://pkg.pr.new/@clerk/express@6074

@clerk/fastify

npm i https://pkg.pr.new/@clerk/fastify@6074

@clerk/localizations

npm i https://pkg.pr.new/@clerk/localizations@6074

@clerk/nextjs

npm i https://pkg.pr.new/@clerk/nextjs@6074

@clerk/nuxt

npm i https://pkg.pr.new/@clerk/nuxt@6074

@clerk/clerk-react

npm i https://pkg.pr.new/@clerk/clerk-react@6074

@clerk/react-router

npm i https://pkg.pr.new/@clerk/react-router@6074

@clerk/remix

npm i https://pkg.pr.new/@clerk/remix@6074

@clerk/shared

npm i https://pkg.pr.new/@clerk/shared@6074

@clerk/tanstack-react-start

npm i https://pkg.pr.new/@clerk/tanstack-react-start@6074

@clerk/testing

npm i https://pkg.pr.new/@clerk/testing@6074

@clerk/themes

npm i https://pkg.pr.new/@clerk/themes@6074

@clerk/types

npm i https://pkg.pr.new/@clerk/types@6074

@clerk/upgrade

npm i https://pkg.pr.new/@clerk/upgrade@6074

@clerk/vue

npm i https://pkg.pr.new/@clerk/vue@6074

commit: 46054bb

@aeliox aeliox merged commit 6e0f879 into main Jun 6, 2025
37 checks passed
@aeliox aeliox deleted the keiran/fix-stripe-card-error-handling branch June 6, 2025 16:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants