[PR #2888] [CLOSED] feat(stripe): isEligible function to check is a user can have a free trial. #4544

Closed
opened 2026-03-13 11:50:24 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/2888
Author: @Konixy
Created: 6/3/2025
Status: Closed

Base: mainHead: feat/stripe_iseligible_trialing


📝 Commits (5)

  • 7e532a8 feat(stripe): Reuse existing subscription
  • 8081147 feat(stripe): isEligible function to check if user can have a free trial
  • 6b08604 Merge branch 'better-auth:main' into feat/stripe_iseligible_trialing
  • 061694b Merge branch 'better-auth:main' into feat/stripe_reuse_existing_subscription
  • 19457bd Merge branch 'feat/stripe_reuse_existing_subscription' into feat/stripe_iseligible_trialing

📊 Changes

3 files changed (+220 additions, -9 deletions)

View changed files

📝 packages/stripe/src/index.ts (+26 -9)
📝 packages/stripe/src/stripe.test.ts (+176 -0)
📝 packages/stripe/src/types.ts (+18 -0)

📄 Description

Without this feature, users can use free trial indefinitely. Didn't add it in the docs, I can do it later if needed.


🔄 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/2888 **Author:** [@Konixy](https://github.com/Konixy) **Created:** 6/3/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `feat/stripe_iseligible_trialing` --- ### 📝 Commits (5) - [`7e532a8`](https://github.com/better-auth/better-auth/commit/7e532a83ca89424b63bd7f925654f9327dd4d493) feat(stripe): Reuse existing subscription - [`8081147`](https://github.com/better-auth/better-auth/commit/8081147a46fff825e07817d88cc625982d7b1ff3) feat(stripe): isEligible function to check if user can have a free trial - [`6b08604`](https://github.com/better-auth/better-auth/commit/6b08604ca879c737ea7b78cc84e926e0e0fd683c) Merge branch 'better-auth:main' into feat/stripe_iseligible_trialing - [`061694b`](https://github.com/better-auth/better-auth/commit/061694bb1467cbb3a4112f71480d4e4f056218ca) Merge branch 'better-auth:main' into feat/stripe_reuse_existing_subscription - [`19457bd`](https://github.com/better-auth/better-auth/commit/19457bd99a3eae86cfd878761111bcf2447fa2ad) Merge branch 'feat/stripe_reuse_existing_subscription' into feat/stripe_iseligible_trialing ### 📊 Changes **3 files changed** (+220 additions, -9 deletions) <details> <summary>View changed files</summary> 📝 `packages/stripe/src/index.ts` (+26 -9) 📝 `packages/stripe/src/stripe.test.ts` (+176 -0) 📝 `packages/stripe/src/types.ts` (+18 -0) </details> ### 📄 Description Without this feature, users can use free trial indefinitely. Didn't add it in the docs, I can do it later if needed. --- <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 11:50:24 -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#4544