[PR #4370] [MERGED] fix(stripe): allow sync function to get plans #5337

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

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/4370
Author: @himself65
Created: 9/2/2025
Status: Merged
Merged: 9/2/2025
Merged by: @himself65

Base: canaryHead: himself65/2025/09/02/sync


📝 Commits (1)

  • 9041478 fix(stripe): allow sync function to get plans

📊 Changes

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

View changed files

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

📄 Description

Summary by cubic

Update StripeOptions.plans to accept a function that returns StripePlan[] or Promise<StripePlan[]>, not just Promise. This enables synchronous plan sources while keeping existing async behavior.


🔄 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/4370 **Author:** [@himself65](https://github.com/himself65) **Created:** 9/2/2025 **Status:** ✅ Merged **Merged:** 9/2/2025 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `canary` ← **Head:** `himself65/2025/09/02/sync` --- ### 📝 Commits (1) - [`9041478`](https://github.com/better-auth/better-auth/commit/90414787412f7120e4c7b478cb4d102a17165db8) fix(stripe): allow sync function to get plans ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `packages/stripe/src/types.ts` (+1 -1) </details> ### 📄 Description <!-- This is an auto-generated description by cubic. --> ## Summary by cubic Update StripeOptions.plans to accept a function that returns StripePlan[] or Promise<StripePlan[]>, not just Promise. This enables synchronous plan sources while keeping existing async behavior. <!-- 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:19: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#5337