[PR #5371] [MERGED] fix(stripe): stripe error codes should be returned from the plugin #22867

Closed
opened 2026-04-15 21:20:17 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/5371
Author: @Bekacru
Created: 10/16/2025
Status: Merged
Merged: 10/16/2025
Merged by: @himself65

Base: canaryHead: fix/stripe-types


📝 Commits (1)

  • 20ef013 fix(stripe): stripe error codes should be returned from the plugin

📊 Changes

1 file changed (+1 additions, -0 deletions)

View changed files

📝 packages/stripe/src/index.ts (+1 -0)

📄 Description

closes #5098


Summary by cubic

Exposes Stripe error codes from the plugin via $ERROR_CODES. This lets clients handle specific Stripe failures reliably without parsing error messages.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/better-auth/better-auth/pull/5371 **Author:** [@Bekacru](https://github.com/Bekacru) **Created:** 10/16/2025 **Status:** ✅ Merged **Merged:** 10/16/2025 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `canary` ← **Head:** `fix/stripe-types` --- ### 📝 Commits (1) - [`20ef013`](https://github.com/better-auth/better-auth/commit/20ef0131018ec8d834cff77d889a65c4738979f9) fix(stripe): stripe error codes should be returned from the plugin ### 📊 Changes **1 file changed** (+1 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `packages/stripe/src/index.ts` (+1 -0) </details> ### 📄 Description closes #5098 <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Exposes Stripe error codes from the plugin via $ERROR_CODES. This lets clients handle specific Stripe failures reliably without parsing error messages. <!-- End of auto-generated description by cubic. --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-15 21:20:17 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#22867