[PR #3539] [CLOSED] Patch stripe lookup keys #4874

Closed
opened 2026-03-13 12:02:44 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/3539
Author: @max-om
Created: 7/22/2025
Status: Closed

Base: mainHead: patch-stripe-lookup-keys


📝 Commits (3)

  • 047a399 feat: add support for retrieving plans by lookup key in Stripe hooks
  • c2ae87f refactor: clean up formatting and improve readability in Stripe hooks
  • 68b1896 feat: enhance subscription update handling by adding lookupKey support

📊 Changes

2 files changed (+272 additions, -231 deletions)

View changed files

📝 packages/stripe/src/hooks.ts (+260 -231)
📝 packages/stripe/src/utils.ts (+12 -0)

📄 Description

Summary by cubic

Added support for Stripe price lookup keys in subscription hooks to improve plan matching and reliability.

  • Refactors
    • Updated subscription event handlers to use lookup keys when available.
    • Added a utility to fetch plans by lookup key.

🔄 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/3539 **Author:** [@max-om](https://github.com/max-om) **Created:** 7/22/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `patch-stripe-lookup-keys` --- ### 📝 Commits (3) - [`047a399`](https://github.com/better-auth/better-auth/commit/047a399b7e8e31b701c839586e41a9d2901f4457) feat: add support for retrieving plans by lookup key in Stripe hooks - [`c2ae87f`](https://github.com/better-auth/better-auth/commit/c2ae87fb60a0f29ca6695000966791b02c963485) refactor: clean up formatting and improve readability in Stripe hooks - [`68b1896`](https://github.com/better-auth/better-auth/commit/68b1896f77087f954930fe2f7748de3d1537c103) feat: enhance subscription update handling by adding lookupKey support ### 📊 Changes **2 files changed** (+272 additions, -231 deletions) <details> <summary>View changed files</summary> 📝 `packages/stripe/src/hooks.ts` (+260 -231) 📝 `packages/stripe/src/utils.ts` (+12 -0) </details> ### 📄 Description <!-- This is an auto-generated description by cubic. --> ## Summary by cubic Added support for Stripe price lookup keys in subscription hooks to improve plan matching and reliability. - **Refactors** - Updated subscription event handlers to use lookup keys when available. - Added a utility to fetch plans by lookup key. <!-- 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-03-13 12:02:44 -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#4874