Skip to content

feat(payments-next): Handle expected card-declined errors#20078

Merged
david1alvarez merged 1 commit intomainfrom
PAY-3157
Feb 20, 2026
Merged

feat(payments-next): Handle expected card-declined errors#20078
david1alvarez merged 1 commit intomainfrom
PAY-3157

Conversation

@david1alvarez
Copy link
Copy Markdown
Contributor

Because:

  • Stripe uses incorrect_cvc, invalid_cvc, incorrect_number, and incorrect_zip as error codes when a user enters their card data incorrectly. We only handle incorrect_cvc, leading to generic errors being thrown

This commit:

  • Adds in the other error codes that pertain to incorrectly-entered customer card data

Closes #PAY-3157

Checklist

Put an x in the boxes that apply

  • My commit is GPG signed.
  • If applicable, I have modified or added tests which pass locally.
  • I have added necessary documentation (if appropriate).
  • I have verified that my changes render correctly in RTL (if appropriate).

@david1alvarez david1alvarez requested a review from a team as a code owner February 18, 2026 18:54
Copy link
Copy Markdown
Contributor

@StaberindeZA StaberindeZA left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

r+wc. Looks like some failing tests, otherwise good to go

Because:

* Stripe uses incorrect_cvc, invalid_cvc, incorrect_number, and incorrect_zip as error codes when a user enters their card data incorrectly. We only handle incorrect_cvc, leading to generic errors being thrown

This commit:

* Adds in the other error codes that pertain to incorrectly-entered customer card data

Closes #PAY-3157
@david1alvarez david1alvarez merged commit 7874216 into main Feb 20, 2026
21 checks passed
@david1alvarez david1alvarez deleted the PAY-3157 branch February 20, 2026 05:36
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